From e30fce5879ed34f28888ac9a9e5cc55d78ed172f Mon Sep 17 00:00:00 2001 From: jonsowman Date: Thu, 3 Jun 2010 15:48:43 +0100 Subject: [PATCH] Auto pan to new launch location after prediction run closes #25 --- predict/js/pred.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/predict/js/pred.js b/predict/js/pred.js index 80dd5b5..0dc4786 100644 --- a/predict/js/pred.js +++ b/predict/js/pred.js @@ -86,6 +86,8 @@ function processProgress(progress) { $("#scenario_info").show("slide", { direction: "up" }, 500); toggleWindow("scenario_template", "showHideDebug", "Show Debug", "Hide Debug", "hide"); + // move map to new location + // map.panTo( // un-fade the map canvas $("#map_canvas").fadeTo(1500, 1); appendDebug("Server says: the predictor finished running."); @@ -199,6 +201,9 @@ function parseCSV(lines) { map_items.push(pop_marker); map_items.push(path_polyline); + // pan to the new position + map.panTo(launch_pt); + return true; }