mirror of
https://github.com/neogeek23/neogeek23.github.io.git
synced 2026-02-04 10:58:21 +00:00
Update MapScript.js
This commit is contained in:
parent
31711d930d
commit
493dfa4e50
@ -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();
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user