Changeset 32811 in osm for applications/editors
- Timestamp:
- 2016-08-15T11:56:50+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/layers/OdDataLayer.java
r32545 r32811 89 89 90 90 public final void downloadOsmData() { 91 String oapiReq = handler.getOverpassApiRequest(bounds); 92 Collection<String> xapiReqs = handler.getOsmXapiRequests(bounds); 93 if (oapiReq != null || xapiReqs != null) { 94 DataSet dataSet = new DataSet(); 95 final OdOsmDataLayer layer = new OdOsmDataLayer(this, dataSet, getName()+"/OSM"); 96 addOsmLayer(layer); 97 Main.getLayerManager().setActiveLayer(osmLayer); 98 if (oapiReq != null) { 99 OsmDownloader.downloadOapi(oapiReq); 100 // Overpass API does not allow to exclude tags :( 101 layer.removeForbiddenTags(); 102 } else { 103 OsmDownloader.downloadXapi(xapiReqs); 91 if (handler != null) { 92 String oapiReq = handler.getOverpassApiRequest(bounds); 93 Collection<String> xapiReqs = handler.getOsmXapiRequests(bounds); 94 if (oapiReq != null || xapiReqs != null) { 95 DataSet dataSet = new DataSet(); 96 final OdOsmDataLayer layer = new OdOsmDataLayer(this, dataSet, getName()+"/OSM"); 97 addOsmLayer(layer); 98 Main.getLayerManager().setActiveLayer(osmLayer); 99 if (oapiReq != null) { 100 OsmDownloader.downloadOapi(oapiReq); 101 // Overpass API does not allow to exclude tags :( 102 layer.removeForbiddenTags(); 103 } else { 104 OsmDownloader.downloadXapi(xapiReqs); 105 } 104 106 } 105 107 }
Note:
See TracChangeset
for help on using the changeset viewer.