Changeset 17543 in josm for trunk/src/org
- Timestamp:
- 2021-02-26T00:33:30+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/preferences/imagery
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
r15717 r17543 30 30 import org.openstreetmap.josm.tools.GBC; 31 31 import org.openstreetmap.josm.tools.Logging; 32 import org.openstreetmap.josm.tools.Utils; 32 33 33 34 /** … … 83 84 getLayers.addActionListener(e -> { 84 85 try { 85 wms = new WMSImagery( rawUrl.getText(), getCommonHeaders());86 wms = new WMSImagery(Utils.strip(rawUrl.getText()), getCommonHeaders()); 86 87 tree.updateTree(wms); 87 88 Collection<String> wmsFormats = wms.getFormats(); -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java
r15805 r17543 24 24 import org.openstreetmap.josm.tools.GBC; 25 25 import org.openstreetmap.josm.tools.Logging; 26 import org.openstreetmap.josm.tools.Utils; 26 27 27 28 /** … … 61 62 getLayers.addActionListener(e -> { 62 63 try { 63 WMTSCapabilities capabilities = WMTSTileSource.getCapabilities( rawUrl.getText(), getCommonHeaders());64 WMTSCapabilities capabilities = WMTSTileSource.getCapabilities(Utils.strip(rawUrl.getText()), getCommonHeaders()); 64 65 layerTable = new WMTSLayerSelection(WMTSTileSource.groupLayersByNameAndTileMatrixSet(capabilities.getLayers())); 65 66 layerTable.getTable().getSelectionModel().addListSelectionListener(lsl -> {
Note:
See TracChangeset
for help on using the changeset viewer.