Changeset 32329 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
- Timestamp:
- 2016-06-19T16:08:56+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r32164 r32329 456 456 public static void addWMSLayer(WMSLayer wmsLayer) { 457 457 if (Main.map != null && Main.map.mapView != null) { 458 int wmsNewLayerPos = Main. map.mapView.getAllLayers().size();459 for(Layer l : Main. map.mapView.getLayersOfType(WMSLayer.class)) {458 int wmsNewLayerPos = Main.getLayerManager().getLayers().size(); 459 for(Layer l : Main.getLayerManager().getLayersOfType(WMSLayer.class)) { 460 460 int wmsPos = Main.map.mapView.getLayerPos(l); 461 461 if (wmsPos < wmsNewLayerPos) wmsNewLayerPos = wmsPos;
Note:
See TracChangeset
for help on using the changeset viewer.