Update MapScript.js

This commit is contained in:
Brad Stein 2018-09-21 02:53:12 -05:00 committed by GitHub
parent 31711d930d
commit 493dfa4e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,5 @@
window.onload = function(){initMap();};
function initMap() { function initMap() {
let directionsService = new google.maps.DirectionsService; let directionsService = new google.maps.DirectionsService;
let directionsDisplay = new google.maps.DirectionsRenderer; let directionsDisplay = new google.maps.DirectionsRenderer;
@ -51,5 +53,3 @@ function calculateAndDisplayRoute(directionsService, directionsDisplay){
} }
}); });
} }
initMap();