Changeset 18720 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
- Timestamp:
- 2009-11-21T00:18:50+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
r18544 r18720 17 17 import org.openstreetmap.josm.data.projection.Lambert; 18 18 import org.openstreetmap.josm.data.projection.LambertCC9Zones; 19 import org.openstreetmap.josm.data.projection.UTM_20N_France_DOM; 19 20 import org.openstreetmap.josm.gui.layer.Layer; 20 21 import org.openstreetmap.josm.tools.GBC; … … 81 82 } 82 83 // add the layer if it doesn't exist 84 int zone = -1; 83 85 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); 87 92 Main.main.addLayer(wmsLayer); 88 93 System.out.println("Add new layer with Location:" + inputTown.getText());
Note:
See TracChangeset
for help on using the changeset viewer.
