this.fetch(bbox, OsmDataLayer.class);
this.fetch(bbox, GpxLayer.class);
}
public void fetch(Bounds bbox, Class<?> klass) {
Bounds extendedBox = extend(bbox, Main.pref.getDouble("plugin.continuos_download.extra_download", 0.1));
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));