Auto pan to new launch location after prediction run closes #25
rodzic
3d2af0121c
commit
e30fce5879
|
@ -86,6 +86,8 @@ function processProgress(progress) {
|
||||||
$("#scenario_info").show("slide", { direction: "up" }, 500);
|
$("#scenario_info").show("slide", { direction: "up" }, 500);
|
||||||
toggleWindow("scenario_template", "showHideDebug", "Show Debug",
|
toggleWindow("scenario_template", "showHideDebug", "Show Debug",
|
||||||
"Hide Debug", "hide");
|
"Hide Debug", "hide");
|
||||||
|
// move map to new location
|
||||||
|
// map.panTo(
|
||||||
// un-fade the map canvas
|
// un-fade the map canvas
|
||||||
$("#map_canvas").fadeTo(1500, 1);
|
$("#map_canvas").fadeTo(1500, 1);
|
||||||
appendDebug("Server says: the predictor finished running.");
|
appendDebug("Server says: the predictor finished running.");
|
||||||
|
@ -199,6 +201,9 @@ function parseCSV(lines) {
|
||||||
map_items.push(pop_marker);
|
map_items.push(pop_marker);
|
||||||
map_items.push(path_polyline);
|
map_items.push(path_polyline);
|
||||||
|
|
||||||
|
// pan to the new position
|
||||||
|
map.panTo(launch_pt);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue