Skip to content Skip to sidebar Skip to footer

Remove Previous Directions Route Google Maps

Hi, I am trying to plan a route from the info window, but i am unable to remove the previous set route. I tried setMap(null) but it didn't work. I am using a callback for an e

Solution 1:

define directionsDisplay only 1 time(outside of the click-handler)


Post a Comment for "Remove Previous Directions Route Google Maps"