From 493dfa4e508a4d20cca157060a928f42d9a2f2b0 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Fri, 21 Sep 2018 02:53:12 -0500 Subject: [PATCH] Update MapScript.js --- MapTest/MapScript.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MapTest/MapScript.js b/MapTest/MapScript.js index 80c13f1..8d9bb8b 100644 --- a/MapTest/MapScript.js +++ b/MapTest/MapScript.js @@ -1,3 +1,5 @@ +window.onload = function(){initMap();}; + function initMap() { let directionsService = new google.maps.DirectionsService; let directionsDisplay = new google.maps.DirectionsRenderer; @@ -51,5 +53,3 @@ function calculateAndDisplayRoute(directionsService, directionsDisplay){ } }); } - -initMap();