Skip to content Skip to sidebar Skip to footer

Google Maps Alternative Routes Won't Update

I have created a directions map from one point to multiple specific point. When one change end point the map should update, and alternative routes should be shown on the right side

Solution 1:

In your OnChangeHandler add this line:

 var onChangeHandler = function() {
      document.getElementById("setPanel").innerHTML = ""; // THIS ONE!
      calculateAndDisplayRoute(directionsService, directionsDisplay);
    };

Post a Comment for "Google Maps Alternative Routes Won't Update"