* @param b The bounds value
* @see #downloadFromParamBounds(boolean, String)
* @see #downloadFromParamHttp
*/
private static void downloadFromParamBounds(final boolean rawGps, Bounds b) {
DownloadTask task = rawGps ? new DownloadGpsTask() : new DownloadOsmTask();
// asynchronously launch the download task ...
Future<?> future = task.download(true, b, null);
// ... and the continuation when the download is finished (this will wait for the download to finish)
Main.worker.execute(new PostDownloadHandler(task, future));
}