- Timestamp:
- 2016-11-21T23:05:39+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/preferences/imagery
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddTMSLayerPanel.java
r8568 r11289 78 78 @Override 79 79 public ImageryInfo getImageryInfo() { 80 return new ImageryInfo(getImageryName(), getTmsUrl()); 80 ImageryInfo ret = new ImageryInfo(getImageryName(), getTmsUrl()); 81 ret.setImageryType(ImageryType.TMS); 82 return ret; 83 81 84 } 82 85 -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
r11017 r11289 19 19 import org.openstreetmap.josm.Main; 20 20 import org.openstreetmap.josm.data.imagery.ImageryInfo; 21 import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType; 21 22 import org.openstreetmap.josm.gui.bbox.SlippyMapBBoxChooser; 22 23 import org.openstreetmap.josm.gui.util.GuiHelper; … … 155 156 info = wms.toImageryInfo(getImageryName(), tree.getSelectedLayers()); 156 157 info.setUrl(getWmsUrl()); 158 info.setImageryType(ImageryType.WMS); 157 159 } 158 160 return info; -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java
r9682 r11289 36 36 protected ImageryInfo getImageryInfo() { 37 37 ImageryInfo ret = new ImageryInfo(getImageryName(), "wmts:" + sanitize(getImageryRawUrl(), ImageryType.WMTS)); 38 ret.setImageryType(ImageryType.WMTS); 38 39 try { 39 40 new WMTSTileSource(ret); // check if constructor throws an error
Note:
See TracChangeset
for help on using the changeset viewer.