Changeset 24913 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
- Timestamp:
- 2010-12-30T15:21:07+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
r24907 r24913 33 33 try { 34 34 if (grabber.getWmsInterface().retrieveInterface(wmsLayer)) { 35 boolean useFactor = true;36 35 if (wmsLayer.images.isEmpty()) { 37 36 // first time we grab an image for this layer … … 52 51 // set vectorized commune bounding box by opening the standard web window 53 52 grabber.getWmsInterface().retrieveCommuneBBox(wmsLayer); 54 // if it is the first layer, use the communeBBox as grab bbox (and not divided)55 if (Main.map.mapView.getAllLayers().size() == 1 ) {56 bounds = wmsLayer.getCommuneBBox().toBounds();57 Main.map.mapView.zoomTo(bounds);58 useFactor = false;59 }60 53 } 61 54 } 62 55 // grab new images from wms server into active layer 63 wmsLayer.grab(grabber, bounds , useFactor);56 wmsLayer.grab(grabber, bounds); 64 57 } 65 58 } catch (DuplicateLayerException e) {
Note:
See TracChangeset
for help on using the changeset viewer.