Changeset 16734 in josm for trunk/src/org
- Timestamp:
- 2020-07-06T17:44:17+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImageryHandler.java
r16589 r16734 53 53 54 54 protected ImageryInfo buildImageryInfo() { 55 args.computeIfAbsent("type", ignore -> ImageryType.WMS.getDefault().getTypeString()); 55 ImageryInfo fromExtendedUrl = new ImageryInfo("", args.get("url")); 56 args.put("url", fromExtendedUrl.getUrl()); 57 args.computeIfAbsent("min_zoom", ignore -> String.valueOf(fromExtendedUrl.getMinZoom())); 58 args.computeIfAbsent("max_zoom", ignore -> String.valueOf(fromExtendedUrl.getMaxZoom())); 59 args.computeIfAbsent("type", ignore -> fromExtendedUrl.getSourceType().getTypeString()); 56 60 args.computeIfAbsent("name", ignore -> args.getOrDefault("title", tr("Remote imagery"))); 57 61 ImageryPreferenceEntry imageryPreferenceEntry = StructUtils.deserializeStruct(args, ImageryPreferenceEntry.class); … … 101 105 return new String[] { 102 106 "/imagery?title=osm&type=tms&url=https://a.tile.openstreetmap.org/%7Bzoom%7D/%7Bx%7D/%7By%7D.png", 107 "/imagery?url=[0-19]https://a.tile.openstreetmap.org/%7Bzoom%7D/%7Bx%7D/%7By%7D.png", 103 108 "/imagery?title=landsat&type=wms&url=http://irs.gis-lab.info/?" + 104 109 "layers=landsat&SRS=%7Bproj%7D&WIDTH=%7Bwidth%7D&HEIGHT=%7Bheight%7D&BBOX=%7Bbbox%7D",
Note:
See TracChangeset
for help on using the changeset viewer.