Changeset 24907 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
- Timestamp:
- 2010-12-29T23:18:37+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
r24899 r24907 20 20 private static String errorMessage; 21 21 22 public DownloadWMSVectorImage(WMSLayer wmsLayer, Bounds bounds , boolean buildingsOnly) {22 public DownloadWMSVectorImage(WMSLayer wmsLayer, Bounds bounds) { 23 23 super(tr("Downloading {0}", wmsLayer.getName())); 24 24 25 25 this.wmsLayer = wmsLayer; 26 26 this.bounds = bounds; 27 this.wmsLayer.setBuildingsOnly(buildingsOnly);28 27 } 29 28 … … 84 83 } 85 84 86 public static void download(WMSLayer wmsLayer , boolean buildingsOnly) {85 public static void download(WMSLayer wmsLayer) { 87 86 MapView mv = Main.map.mapView; 88 87 Bounds bounds = new Bounds(mv.getLatLon(0, mv.getHeight()), mv.getLatLon(mv.getWidth(), 0)); 89 88 90 Main.worker.execute(new DownloadWMSVectorImage(wmsLayer, bounds , buildingsOnly));89 Main.worker.execute(new DownloadWMSVectorImage(wmsLayer, bounds)); 91 90 if (errorMessage != null) 92 91 JOptionPane.showMessageDialog(Main.parent, errorMessage);
Note:
See TracChangeset
for help on using the changeset viewer.
