kopia lustrzana https://github.com/JOSM/MapWithAI
Don't try to download data from sources that do not cover the current area
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>pull/1/head
rodzic
d96100c67d
commit
e5897da7f7
|
@ -48,7 +48,7 @@ public class MapWithAIDownloadReader implements DownloadSource<MapWithAIDownload
|
|||
Bounds area = settings.getDownloadBounds().orElse(new Bounds(0, 0, 0, 0));
|
||||
DownloadMapWithAITask task = new DownloadMapWithAITask();
|
||||
task.setZoomAfterDownload(settings.zoomToData());
|
||||
data.getUrls().forEach(url -> {
|
||||
data.getUrls().stream().filter(i -> i.getBounds() == null || i.getBounds().intersects(area)).forEach(url -> {
|
||||
Future<?> future = task.download(
|
||||
new BoundingBoxMapWithAIDownloader(area, url, DetectTaskingManagerUtils.hasTaskingManagerLayer()),
|
||||
new DownloadParams(), area, null);
|
||||
|
|
Ładowanie…
Reference in New Issue