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