Ignore:
Timestamp:
2010-03-09T22:02:00+01:00 (16 years ago)
Author:
pieren
Message:

Many small fixes and improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java

    r18838 r20390  
    1616
    1717    private Bounds bounds;
    18 
     18   
    1919    private CadastreGrabber grabber = CadastrePlugin.cadastreGrabber;
    2020
    21     public DownloadWMSVectorImage(WMSLayer wmsLayer, Bounds bounds) {
     21    public DownloadWMSVectorImage(WMSLayer wmsLayer, Bounds bounds, boolean buildingsOnly) {
    2222        super(tr("Downloading {0}", wmsLayer.getName()));
    2323
    2424        this.wmsLayer = wmsLayer;
    2525        this.bounds = bounds;
     26        this.wmsLayer.setBuildingsOnly(buildingsOnly);
    2627    }
    2728
     
    7374    }
    7475
    75     public static void download(WMSLayer wmsLayer) {
     76    public static void download(WMSLayer wmsLayer, boolean buildingsOnly) {
    7677        MapView mv = Main.map.mapView;
    7778        Bounds bounds = new Bounds(mv.getLatLon(0, mv.getHeight()), mv.getLatLon(mv.getWidth(), 0));
    7879
    79         Main.worker.execute(new DownloadWMSVectorImage(wmsLayer, bounds));
     80        Main.worker.execute(new DownloadWMSVectorImage(wmsLayer, bounds, buildingsOnly));
    8081
    8182    }
Note: See TracChangeset for help on using the changeset viewer.