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??

mobileDeveloper
  • 894
  • 2
  • 14
  • 35

1 Answers1

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"
    }
});
Community
  • 1
  • 1
Brent
  • 1,378
  • 2
  • 16
  • 30