Delta square properly plotted when viewing old predictions

pull/73/head
jonsowman 2010-06-08 15:34:27 +01:00
rodzic c62351aaaf
commit ed014b27c7
3 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -98,6 +98,7 @@ a { text-decoration: underline; color: #333; cursor: pointer; }
border-bottom: none;
max-height: 400px;
overflow: scroll;
display: none;
}
#input_form {

Wyświetl plik

@ -95,12 +95,11 @@ function initialize() {
$("#input_form").draggable({containment: '#map_canvas'});
if ( current_uuid != '0' ) {
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);
appendDebug("Trying to get flight path from server...");
getCSV(current_uuid);
}
$("#scenario_template").hide();
$("#showHideDebug").click(function() {
toggleWindow("scenario_template", "showHideDebug", "Show Debug", "Hide Debug");
});

Wyświetl plik

@ -285,6 +285,10 @@ function parseCSV(lines) {
map_items['pop_marker'] = pop_marker;
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
map.panTo(launch_pt);
map.setZoom(8);