Changeset 18207 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
- Timestamp:
- 2009-10-18T18:11:09+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
r17089 r18207 7 7 import org.openstreetmap.josm.Main; 8 8 import org.openstreetmap.josm.data.Bounds; 9 import org.openstreetmap.josm.data.projection.LambertCC9Zones; 9 10 import org.openstreetmap.josm.gui.MapView; 10 11 import org.openstreetmap.josm.gui.PleaseWaitRunnable; … … 38 39 } 39 40 } 40 if (wmsLayer.isRaster()) 41 if (wmsLayer.isRaster()) { 41 42 // set raster image commune bounding box based on current view (before adjustment) 42 43 wmsLayer.setRasterBounds(bounds); 43 else44 } else { 44 45 // set vectorized commune bounding box by opening the standard web window 45 46 wmsLayer.setCommuneBBox( grabber.getWmsInterface().retrieveCommuneBBox()); 47 // if it is the first layer, use the communeBBox as grab bbox 48 if (Main.proj instanceof LambertCC9Zones && Main.map.mapView.getAllLayers().size() == 1 ) { 49 bounds = wmsLayer.getCommuneBBox().toBounds(); 50 Main.map.mapView.zoomTo(bounds); 51 } 52 } 46 53 } 47 54 // grab new images from wms server into active layer
Note:
See TracChangeset
for help on using the changeset viewer.
