Added Elvington to sites.json and commented out populateLaunchSite alerts
rodzic
83eb2cf546
commit
7e3d34f44d
|
@ -106,14 +106,14 @@ function showMousePos(GLatLng) {
|
|||
function populateLaunchSite() {
|
||||
$("#site > option").remove();
|
||||
$.getJSON("sites.json", function(sites) {
|
||||
alert("Trying to populate launch sites...");
|
||||
//alert("Trying to populate launch sites...");
|
||||
$.each(sites, function(sitename, site) {
|
||||
//$("#site").append($('<option></option>').val(sitename).html(sitename));
|
||||
$("<option>").attr("value", sitename).text(sitename).appendTo("#site");
|
||||
});
|
||||
//$("#site").append($('<option></option>').val("Other").html("Other"));
|
||||
$("<option>").attr("value", "Other").text("Other").appendTo("#site");
|
||||
alert("Done populating list");
|
||||
//alert("Done populating list");
|
||||
return true;
|
||||
});
|
||||
return true;
|
||||
|
|
|
@ -23,5 +23,10 @@
|
|||
"altitude" : 0,
|
||||
"latitude" : -34.9499,
|
||||
"longitude" : 138.5194,
|
||||
},
|
||||
"Elvington": {
|
||||
"altitude" : 0,
|
||||
"latitude" : 53.9231,
|
||||
"longitude" : -0.9935,
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue