Changeset 30636 in osm for applications


Ignore:
Timestamp:
2014-09-15T01:04:28+02:00 (10 years ago)
Author:
donvip
Message:

[josm_waydownloader] fix #josm6314 - make BBOX-values configurable

Location:
applications/editors/josm/plugins/waydownloader
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/waydownloader/README

    r15412 r30636  
    44The way downloader plugin allows easy downloading along a long set of interconnected ways.
    55
    6 Created by Harry Wood mainly as a learning excercise. May be a bit buggy!
     6Created by Harry Wood mainly as a learning exercise. May be a bit buggy!
  • applications/editors/josm/plugins/waydownloader/src/org/openstreetmap/josm/plugins/waydownloader/WayDownloaderPlugin.java

    r29908 r30636  
     1// License: GPL. For details, see LICENSE file.
    12package org.openstreetmap.josm.plugins.waydownloader;
    23
     
    1920import org.openstreetmap.josm.command.Command;
    2021import org.openstreetmap.josm.data.Bounds;
    21 import org.openstreetmap.josm.data.osm.BBox;
    2222import org.openstreetmap.josm.data.osm.DataSet;
    2323import org.openstreetmap.josm.data.osm.DataSource;
     
    4141    private Way priorConnectedWay = null;
    4242    private Node selectedNode = null;
    43 
    4443
    4544    /** Plugin constructor called at JOSM startup */
     
    123122                return;
    124123            }
    125             priorConnectedWay =connectedWays.get(0);
     124            priorConnectedWay = connectedWays.get(0);
    126125
    127126            //Download a little rectangle around the selected node
    128             double latbuffer=0.0003; //TODO make this an option
    129             double lonbuffer=0.0005;
     127            double latbuffer = Main.pref.getDouble("waydownloader.latbuffer", 0.00001);
     128            double lonbuffer = Main.pref.getDouble("waydownloader.latbuffer", 0.00002);
    130129            DownloadOsmTask downloadTask = new DownloadOsmTask();
    131130            final PleaseWaitProgressMonitor monitor = new PleaseWaitProgressMonitor();
Note: See TracChangeset for help on using the changeset viewer.