Changeset 20390 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
- Timestamp:
- 2010-03-09T22:02:00+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r20262 r20390 90 90 * 1.6 28-Nov-2009 - Fix minor issues if Grab is called without layer (possible since projection rework) 91 91 * 1.7 12-Dec-2009 - Change URL's changes for cookie and downgrade imgs resolution due to WMS changes 92 * 1.8 xxx- filter the mouse button 1 during georeferencing92 * 1.8 09-Mar-2010 - filter the mouse button 1 during georeferencing 93 93 * - retry if getting a new cookie failed (10 times during 30 seconds) 94 94 * - cookie expiration automatically detected and renewed (after 30 minutes) … … 188 188 // temporary disabled: 189 189 //JMenuItem menuActionBoundaries = new JMenuItem(new MenuActionBoundaries()); 190 //JMenuItem menuActionBuildings = new JMenuItem(new MenuActionBuildings());190 JMenuItem menuActionBuildings = new JMenuItem(new MenuActionBuildings()); 191 191 192 192 cadastreJMenu.add(menuGrab); … … 196 196 //cadastreJMenu.add(menuResetCookie); not required any more 197 197 //cadastreJMenu.add(menuLambertZone); 198 if (Main.pref.getBoolean("cadastrewms.buildingsMenu", false)) 199 cadastreJMenu.add(menuActionBuildings); 198 200 cadastreJMenu.add(menuLoadFromCache); 199 201 // all SVG features disabled until official WMS is released 200 202 //cadastreJMenu.add(menuActionBoundaries); 201 //cadastreJMenu.add(menuActionBuildings);202 203 } 203 204 setEnabledAll(menuEnabled); … … 224 225 imageWidth = 600; imageHeight = 400; 225 226 } 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 += "LIEUDIT_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 } 227 refreshLayersURL(); 268 228 269 229 // overwrite F11 shortcut used from the beginning by this plugin and recently used … … 296 256 refreshMenu(); 297 257 } 258 259 private static void refreshLayersURL() { 260 grabLayers = ""; 261 grabStyles = ""; 262 if (Main.pref.getBoolean("cadastrewms.layerWater", true)) { 263 grabLayers += "CDIF:LS3,"; 264 grabStyles += "LS3_90,"; 265 } 266 if (Main.pref.getBoolean("cadastrewms.layerBuilding", true)) { 267 grabLayers += "CDIF:LS2,"; 268 grabStyles += "LS2_90,"; 269 } 270 if (Main.pref.getBoolean("cadastrewms.layerSymbol", true)) { 271 grabLayers += "CDIF:LS1,"; 272 grabStyles += "LS1_90,"; 273 } 274 if (Main.pref.getBoolean("cadastrewms.layerParcel", true)) { 275 grabLayers += "CDIF:PARCELLE,"; 276 grabStyles += "PARCELLE_90,"; 277 } 278 if (Main.pref.getBoolean("cadastrewms.layerNumero", true)) { 279 grabLayers += "CDIF:NUMERO,"; 280 grabStyles += "NUMERO_90,"; 281 } 282 if (Main.pref.getBoolean("cadastrewms.layerLabel", true)) { 283 grabLayers += "CDIF:PT3,CDIF:PT2,CDIF:PT1,"; 284 grabStyles += "PT3_90,PT2_90,PT1_90,"; 285 } 286 if (Main.pref.getBoolean("cadastrewms.layerLieudit", true)) { 287 grabLayers += "CDIF:LIEUDIT,"; 288 grabStyles += "LIEUDIT_90,"; 289 } 290 if (Main.pref.getBoolean("cadastrewms.layerSection", true)) { 291 grabLayers += "CDIF:SUBSECTION,CDIF:SECTION,"; 292 grabStyles += "SUBSECTION_90,SECTION_90,"; 293 } 294 if (Main.pref.getBoolean("cadastrewms.layerCommune", true)) { 295 grabLayers += "CDIF:COMMUNE,"; 296 grabStyles += "COMMUNE_90,"; 297 } 298 if (grabLayers.length() > 0) { // remove the last ',' 299 grabLayers = grabLayers.substring(0, grabLayers.length()-1); 300 grabStyles = grabStyles.substring(0, grabStyles.length()-1); 301 } 302 } 298 303 299 304 @Override … … 322 327 Main.map.addMapMode(new IconToggleButton 323 328 (new WMSAdjustAction(Main.map))); 329 Main.map.addMapMode(new IconToggleButton 330 (new Buildings(Main.map))); 324 331 } else if (oldFrame != null && newFrame == null) { 325 332 setEnabledAll(false);
Note:
See TracChangeset
for help on using the changeset viewer.