Changeset 16735 in josm


Ignore:
Timestamp:
2020-07-06T20:55:18+02:00 (3 months ago)
Author:
stoecker
Message:

fix #19483 - don't support undocumented behaviour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImageryHandler.java

    r16734 r16735  
    5353
    5454    protected ImageryInfo buildImageryInfo() {
    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());
     55        args.computeIfAbsent("type", ignore -> ImageryType.WMS.getDefault().getTypeString());
    6056        args.computeIfAbsent("name", ignore -> args.getOrDefault("title", tr("Remote imagery")));
    6157        ImageryPreferenceEntry imageryPreferenceEntry = StructUtils.deserializeStruct(args, ImageryPreferenceEntry.class);
     
    105101        return new String[] {
    106102            "/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",
    108103            "/imagery?title=landsat&type=wms&url=http://irs.gis-lab.info/?" +
    109104                    "layers=landsat&SRS=%7Bproj%7D&WIDTH=%7Bwidth%7D&HEIGHT=%7Bheight%7D&BBOX=%7Bbbox%7D",
Note: See TracChangeset for help on using the changeset viewer.