Delta square properly plotted when viewing old predictions
rodzic
c62351aaaf
commit
ed014b27c7
|
@ -98,6 +98,7 @@ a { text-decoration: underline; color: #333; cursor: pointer; }
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#input_form {
|
#input_form {
|
||||||
|
|
|
@ -95,12 +95,11 @@ function initialize() {
|
||||||
$("#input_form").draggable({containment: '#map_canvas'});
|
$("#input_form").draggable({containment: '#map_canvas'});
|
||||||
if ( current_uuid != '0' ) {
|
if ( current_uuid != '0' ) {
|
||||||
appendDebug("Got an old UUID to plot:<br>" + current_uuid);
|
appendDebug("Got an old UUID to plot:<br>" + current_uuid);
|
||||||
appendDebug("Trying to populate form with scenario data");
|
appendDebug("Trying to populate form with scenario data...");
|
||||||
populateFormByUUID(current_uuid);
|
populateFormByUUID(current_uuid);
|
||||||
appendDebug("Trying to get flight path from server...");
|
appendDebug("Trying to get flight path from server...");
|
||||||
getCSV(current_uuid);
|
getCSV(current_uuid);
|
||||||
}
|
}
|
||||||
$("#scenario_template").hide();
|
|
||||||
$("#showHideDebug").click(function() {
|
$("#showHideDebug").click(function() {
|
||||||
toggleWindow("scenario_template", "showHideDebug", "Show Debug", "Hide Debug");
|
toggleWindow("scenario_template", "showHideDebug", "Show Debug", "Hide Debug");
|
||||||
});
|
});
|
||||||
|
|
|
@ -285,6 +285,10 @@ function parseCSV(lines) {
|
||||||
map_items['pop_marker'] = pop_marker;
|
map_items['pop_marker'] = pop_marker;
|
||||||
map_items['path_polyline'] = path_polyline;
|
map_items['path_polyline'] = path_polyline;
|
||||||
|
|
||||||
|
// we wiped off the old delta square,
|
||||||
|
// and it may have changed anyway, so re-plot
|
||||||
|
drawDeltaSquare(map);
|
||||||
|
|
||||||
// pan to the new position
|
// pan to the new position
|
||||||
map.panTo(launch_pt);
|
map.panTo(launch_pt);
|
||||||
map.setZoom(8);
|
map.setZoom(8);
|
||||||
|
|
Ładowanie…
Reference in New Issue