Changeset 18207 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSDownloadAction.java
- Timestamp:
- 2009-10-18T18:11:09+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSDownloadAction.java
r17089 r18207 26 26 public static WMSLayer getLayer() { 27 27 // check if we already have a layer created. if not, create; if yes, reuse. 28 ArrayList<WMSLayer> existingWMSlayers = new ArrayList<WMSLayer>(); 28 29 if (Main.map != null) { 29 30 Layer activeLayer = Main.map.mapView.getActiveLayer(); 30 31 if (activeLayer instanceof WMSLayer) 31 32 return (WMSLayer) activeLayer; 32 ArrayList<WMSLayer> existingWMSlayers = new ArrayList<WMSLayer>();33 33 for (Layer l : Main.map.mapView.getAllLayers()) { 34 34 if (l instanceof WMSLayer) { … … 42 42 JOptionPane.showMessageDialog(Main.parent, 43 43 tr("More than one WMS layer present\nSelect one of them first, then retry")); 44 } else { 45 return new MenuActionNewLocation().addNewLayer(existingWMSlayers); 44 46 } 45 47 return null;
Note:
See TracChangeset
for help on using the changeset viewer.
