Changeset 4791 in josm


Ignore:
Timestamp:
2012-01-14T16:49:41+01:00 (12 years ago)
Author:
simon04
Message:

fix #5920 - remotecontrol: option for "new layer" added (e.g., http://127.0.0.1:8111/load_and_zoom?left=...&top=...&right=...&bottom=...&new_layer={true,false})

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java

    r4724 r4791  
    6767            minlon = Double.parseDouble(args.get("left"));
    6868            maxlon = Double.parseDouble(args.get("right"));
     69            boolean newLayer = Boolean.parseBoolean(args.get("new_layer"));
    6970
    7071            if(command.equals(myCommand))
     
    103104                    else
    104105                    {
    105                         Future<?> future = osmTask.download(false /*no new layer*/, new Bounds(minlat,minlon,maxlat,maxlon), null /* let the task manage the progress monitor */);
     106                        Future<?> future = osmTask.download(newLayer, new Bounds(minlat,minlon,maxlat,maxlon), null /* let the task manage the progress monitor */);
    106107                        Main.worker.submit(new PostDownloadHandler(osmTask, future));
    107108                    }
Note: See TracChangeset for help on using the changeset viewer.