Ignore:
Timestamp:
2009-11-21T00:18:50+01:00 (17 years ago)
Author:
pieren
Message:

Add subprojection handling

File:
1 edited

Legend:

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

    r18544 r18720  
    1717import org.openstreetmap.josm.data.projection.Lambert;
    1818import org.openstreetmap.josm.data.projection.LambertCC9Zones;
     19import org.openstreetmap.josm.data.projection.UTM_20N_France_DOM;
    1920import org.openstreetmap.josm.gui.layer.Layer;
    2021import org.openstreetmap.josm.tools.GBC;
     
    8182                }
    8283                // add the layer if it doesn't exist
     84                int zone = -1;
    8385                if (Main.proj instanceof LambertCC9Zones)
    84                     wmsLayer = new WMSLayer(location, codeCommune, LambertCC9Zones.layoutZone);
    85                 else
    86                     wmsLayer = new WMSLayer(location, codeCommune, Lambert.layoutZone);
     86                    zone = ((LambertCC9Zones)Main.proj).getLayoutZone();
     87                else if (Main.proj instanceof Lambert)
     88                    zone = ((Lambert)Main.proj).getLayoutZone();
     89                else if (Main.proj instanceof UTM_20N_France_DOM)
     90                    zone = ((UTM_20N_France_DOM)Main.proj).getCurrentGeodesic();
     91                wmsLayer = new WMSLayer(location, codeCommune, zone);
    8792                Main.main.addLayer(wmsLayer);
    8893                System.out.println("Add new layer with Location:" + inputTown.getText());
Note: See TracChangeset for help on using the changeset viewer.