Google Maps: Clickable PolyLine using direction service
Clickable PolyLine using direction service ===================================================== var directionsService = new google.maps.DirectionsService(); var request = { origin : point1, destination : point2, provideRouteAlternatives : false, travelMode : google.maps.DirectionsTravelMode.WALKING //travelMode: google.maps.DirectionsTravelMode.DRIVING }; var polyline = new google.maps.Polyline({ path: [], strokeColor: '#6A5ACD', strokeOpacity : 0.8, ...