Finished Google Maps API

This commit is contained in:
YaFedImYaEatIm
2016-09-17 18:01:35 +12:00
parent ae3fbefd0d
commit a9edea7690
7 changed files with 49 additions and 16 deletions
+13
View File
@@ -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) {