Finished Google Maps API
This commit is contained in:
@@ -36,6 +36,19 @@
|
||||
});
|
||||
}
|
||||
|
||||
function displayAirport(position){
|
||||
map = new google.maps.Map(document.getElementById('map'), {
|
||||
center: position[0],
|
||||
zoom: 15
|
||||
});
|
||||
|
||||
new google.maps.Marker({
|
||||
position: position[0],
|
||||
map: map,
|
||||
title: '\u0048\u0061\u0072\u0061\u006d\u0062\u0065'
|
||||
});
|
||||
}
|
||||
|
||||
function displayRoute(flightPath) {
|
||||
// CLEAR EXISTING MARKERS
|
||||
if (marker1 !== undefined && marker2 !== undefined && path !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user