Ignore:
Timestamp:
2016-01-01T18:52:02+01:00 (8 years ago)
Author:
simon04
Message:

see #7670 - Possibility to download from mirror with all download action

Set preference key download.overpass.for-multi-fetch to true in order to use Overpass API

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OverpassDownloadAction.java

    r8932 r9241  
    6060
    6161    /**
     62     * The {@link StringProperty property} of the currently selected Overpass server.
     63     *
     64     * @since 9241
     65     */
     66    public static final StringProperty OVERPASS_SERVER = new StringProperty("download.overpass.server", "http://overpass-api.de/api/");
     67
     68    /**
    6269     * Constructs a new {@code OverpassDownloadAction}.
    6370     */
     
    121128        private JosmTextArea overpassQuery;
    122129        private static OverpassDownloadDialog instance;
    123         private static final StringProperty OVERPASS_SERVER = new StringProperty("download.overpass.server", "http://overpass-api.de/api/");
    124130        private static final CollectionProperty OVERPASS_SERVER_HISTORY = new CollectionProperty("download.overpass.servers",
    125131                Arrays.asList("http://overpass-api.de/api/", "http://overpass.osm.rambler.ru/cgi/"));
  • trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java

    r8510 r9241  
    3939     */
    4040    public static void handlePrimitiveGoneException(long id, OsmPrimitiveType type) {
    41         MultiFetchServerObjectReader reader = new MultiFetchServerObjectReader();
     41        MultiFetchServerObjectReader reader = MultiFetchServerObjectReader.create();
    4242        reader.append(getCurrentDataSet(), id, type);
    4343        try {
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadReferrersTask.java

    r8510 r9241  
    220220            nodes.removeAll(targetLayer.data.getNodes());
    221221            if (!nodes.isEmpty()) {
    222                 reader = new MultiFetchServerObjectReader();
     222                reader = MultiFetchServerObjectReader.create();
    223223                ((MultiFetchServerObjectReader) reader).append(nodes);
    224224                DataSet wayNodes = reader.parseOsm(progressMonitor.createSubTaskMonitor(1, false));
Note: See TracChangeset for help on using the changeset viewer.