I'm working on a school project and I'm trying to create a world map with only airport locations (and their corresponding long and lat value).
I had to create a database for it, and used a sql statement (part of the assignment. Now I'm able to see the the positive value of the long and lat I think: http://webpages.avans.nl/acue-gast01/database/index.html
However, I have no clue how show the negative values of both the alt and long... and how I can fit them on the screen.
This is what I have
$.getJSON("index.php", function(data) {
// show data in console
console.log(data);
$.each(data, function(key, val) {
// show data per item in console
console.log(key + " - " + "Longitude" + ": " + val.Airport_LONG + " | " + "Latitude" + ": " + val.Airport_LAT);
$("<div>").html(val.Airport_LAT, val.Airport_LONG)
.css('background-color','white')
.css('left',val.Airport_LONG/10*380 + "px")
.css('top',val.Airport_LAT/10*380+"px")
.css('margin','20px')
.css('width','20px')
.appendTo("body");
});
});
Does anyone have a idea?