Hello,
I search for many hours a solution to apply a color to the polyline
generate by a DirectionsRenderer.
I found in documentation that's the StrokeColor in polyline object but
I can't find the way to catch this object.
directionsService.route(routes, function(response, status) {
if (status == google.maps.DirectionsStatus.OK) {
var directionDisplayObject = new google.maps.DirectionsRenderer
(rendererOptions);
directionDisplayObject.setMap(map);
directionDisplayObject.setDirections(response);
// here I want to apply a color to the direction
}
});
Thanks for you help.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.