Changeset 20247 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
- Timestamp:
- 2010-03-02T15:15:29+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r20240 r20247 100 100 * - raster image adjustment using default system menu modifier (ctrl for windows) for Mac support 101 101 * - image resolution configurable (high, medium, low) like the online interface 102 * - layer selection configurable for vectorized images 102 103 * - from Erik Amzallag: 103 104 * - possibility to modify the auto-sourcing text just before upload … … 132 133 133 134 public static int imageWidth, imageHeight; 135 136 public static String grabLayers, grabStyles = null; 134 137 135 138 static private boolean menuEnabled = false; … … 221 224 imageWidth = 600; imageHeight = 400; 222 225 } 226 grabLayers = ""; 227 grabStyles = ""; 228 if (Main.pref.getBoolean("cadastrewms.layerWater", true)) { 229 grabLayers += "CDIF:LS3,"; 230 grabStyles += "LS3_90,"; 231 } 232 if (Main.pref.getBoolean("cadastrewms.layerBuilding", true)) { 233 grabLayers += "CDIF:LS2,"; 234 grabStyles += "LS2_90,"; 235 } 236 if (Main.pref.getBoolean("cadastrewms.layerSymbol", true)) { 237 grabLayers += "CDIF:LS1,"; 238 grabStyles += "LS1_90,"; 239 } 240 if (Main.pref.getBoolean("cadastrewms.layerParcel", true)) { 241 grabLayers += "CDIF:PARCELLE,"; 242 grabStyles += "PARCELLE_90,"; 243 } 244 if (Main.pref.getBoolean("cadastrewms.layerNumero", true)) { 245 grabLayers += "CDIF:NUMERO,"; 246 grabStyles += "NUMERO_90,"; 247 } 248 if (Main.pref.getBoolean("cadastrewms.layerLabel", true)) { 249 grabLayers += "CDIF:PT3,CDIF:PT2,CDIF:PT1,"; 250 grabStyles += "PT3_90,PT2_90,PT1_90,"; 251 } 252 if (Main.pref.getBoolean("cadastrewms.layerLieudit", true)) { 253 grabLayers += "CDIF:LIEUDIT,"; 254 grabStyles += "NUMERO_90,"; 255 } 256 if (Main.pref.getBoolean("cadastrewms.layerSection", true)) { 257 grabLayers += "CDIF:SUBSECTION,CDIF:SECTION,"; 258 grabStyles += "SUBSECTION_90,SECTION_90,"; 259 } 260 if (Main.pref.getBoolean("cadastrewms.layerCommune", true)) { 261 grabLayers += "CDIF:COMMUNE,"; 262 grabStyles += "COMMUNE_90,"; 263 } 264 if (grabLayers.length() > 0) { // remove the last ',' 265 grabLayers = grabLayers.substring(0, grabLayers.length()-1); 266 grabStyles = grabStyles.substring(0, grabStyles.length()-1); 267 } 223 268 224 269 // overwrite F11 shortcut used from the beginning by this plugin and recently used
Note:
See TracChangeset
for help on using the changeset viewer.