Skip to content

Commit

Permalink
Only download data if there is a layer available
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnonthgol committed Oct 3, 2014
1 parent 3cd1b31 commit 30d38fe
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -26,7 +26,10 @@ public void fetch(Bounds bbox) {

public void fetch(Bounds bbox, Class<?> klass) {
Bounds extendedBox = extend(bbox, Main.pref.getDouble("plugin.continuos_download.extra_download", 0.1));
Collection<Bounds> toFetch = getBoxes(extendedBox, getExisting(klass),
Collection<Bounds> existing = getExisting(klass);
if (existing.size() == 0)
return;
Collection<Bounds> toFetch = getBoxes(extendedBox, existing,
Main.pref.getInteger("plugin.continuos_download.max_areas", 4));

printDebug(extendedBox, toFetch);
Expand Down

0 comments on commit 30d38fe

Please sign in to comment.