Changeset 13426 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSTask.java
- Timestamp:
- 2009-01-28T21:44:10+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSTask.java
r13382 r13426 29 29 try { 30 30 if (grabber.getWmsInterface().retrieveInterface(wmsLayer)) { 31 if (wmsLayer.i sRaster() && wmsLayer.images.isEmpty())32 wmsLayer.setRasterBounds(bounds);33 if (CacheControl.cacheEnabled && wmsLayer.images.isEmpty()) {34 // images loaded from cache35 if (wmsLayer.getCacheControl().loadCacheIfExist()) {36 Main.map.mapView.repaint();37 return;31 if (wmsLayer.images.isEmpty()) { 32 // first time we grab an image for this layer 33 if (CacheControl.cacheEnabled) { 34 if (wmsLayer.getCacheControl().loadCacheIfExist()) { 35 Main.map.mapView.repaint(); 36 return; 37 } 38 38 } 39 if (wmsLayer.isRaster()) 40 // set raster image commune bounding box based on current view (before adjustment) 41 wmsLayer.setRasterBounds(bounds); 42 else 43 // set vectorized commune bounding box by opening the standard web window 44 wmsLayer.setCommuneBBox( grabber.getWmsInterface().retrieveCommuneBBox()); 39 45 } 40 46 // grab new images from wms server into active layer
Note:
See TracChangeset
for help on using the changeset viewer.