COnnected maps to airlines, Airports and ROutes

This commit is contained in:
YaFedImYaEatIm
2016-09-17 20:06:19 +12:00
parent 44ed68ee7a
commit 5363cf8b4e
12 changed files with 114 additions and 7 deletions
+6 -2
View File
@@ -26,7 +26,7 @@
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 39.144684, lng: -84.510079},
zoom: 15
zoom: 5
});
new google.maps.Marker({
@@ -39,7 +39,7 @@
function displayAirport(position){
map = new google.maps.Map(document.getElementById('map'), {
center: position[0],
zoom: 15
zoom: 5
});
new google.maps.Marker({
@@ -50,6 +50,10 @@
}
function displayRoute(flightPath) {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 39.144684, lng: -84.510079},
zoom: 15
});
// CLEAR EXISTING MARKERS
if (marker1 !== undefined && marker2 !== undefined && path !== undefined) {
marker1.setMap(null);