Changeset 20390 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
- Timestamp:
- 2010-03-09T22:02:00+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
r18838 r20390 16 16 17 17 private Bounds bounds; 18 18 19 19 private CadastreGrabber grabber = CadastrePlugin.cadastreGrabber; 20 20 21 public DownloadWMSVectorImage(WMSLayer wmsLayer, Bounds bounds) { 21 public DownloadWMSVectorImage(WMSLayer wmsLayer, Bounds bounds, boolean buildingsOnly) { 22 22 super(tr("Downloading {0}", wmsLayer.getName())); 23 23 24 24 this.wmsLayer = wmsLayer; 25 25 this.bounds = bounds; 26 this.wmsLayer.setBuildingsOnly(buildingsOnly); 26 27 } 27 28 … … 73 74 } 74 75 75 public static void download(WMSLayer wmsLayer) { 76 public static void download(WMSLayer wmsLayer, boolean buildingsOnly) { 76 77 MapView mv = Main.map.mapView; 77 78 Bounds bounds = new Bounds(mv.getLatLon(0, mv.getHeight()), mv.getLatLon(mv.getWidth(), 0)); 78 79 79 Main.worker.execute(new DownloadWMSVectorImage(wmsLayer, bounds)); 80 Main.worker.execute(new DownloadWMSVectorImage(wmsLayer, bounds, buildingsOnly)); 80 81 81 82 }
Note:
See TracChangeset
for help on using the changeset viewer.
