Ignore:
Timestamp:
2009-10-18T18:11:09+02:00 (16 years ago)
Author:
pieren
Message:

Use the new cadastre projection LambertCC9Zones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSDownloadAction.java

    r17089 r18207  
    2626    public static WMSLayer getLayer() {
    2727        // check if we already have a layer created. if not, create; if yes, reuse.
     28        ArrayList<WMSLayer> existingWMSlayers = new ArrayList<WMSLayer>();
    2829        if (Main.map != null) {
    2930            Layer activeLayer = Main.map.mapView.getActiveLayer();
    3031            if (activeLayer instanceof WMSLayer)
    3132                return (WMSLayer) activeLayer;
    32             ArrayList<WMSLayer> existingWMSlayers = new ArrayList<WMSLayer>();
    3333            for (Layer l : Main.map.mapView.getAllLayers()) {
    3434                if (l instanceof WMSLayer) {
     
    4242            JOptionPane.showMessageDialog(Main.parent,
    4343                    tr("More than one WMS layer present\nSelect one of them first, then retry"));
     44        } else {
     45            return new MenuActionNewLocation().addNewLayer(existingWMSlayers);
    4446        }
    4547        return null;
Note: See TracChangeset for help on using the changeset viewer.