how to change the color of the route on google map

Go To StackoverFlow.com

2

I want to change the color of the line on google map when I serach the root. I want to make it like in the picture. I want to change it from this default picture default line route to line with red color like in this picture color of route. I use Google Maps JavaScript API V3. Is that possible??

2012-04-05 16:30
by mobileDeveloper


0

See answer how to change the color of route in google maps v3

When you create the directionDisplay object

var directionsDisplay = new google.maps.DirectionsRenderer({
    polylineOptions: {
       strokeColor: "red"
    }
});
2014-10-17 19:18
by Brent
Ads