Is it possible to both open and infowindow and draw the route between a ‘home’ marker and the marker clicked?
What I’ve got is multiple markers on a map with a ‘home’ marker. I’d like to have the route drawn on the map from this ‘home’ marker to the marker clicked.
Is it possible to both open and infowindow and draw the route between a
Share
What you want is an event listener on your markers for the
clickevent. Within that, use theDirectionsServiceto draw your route.