how to change the color of route in google maps v3
You can specify the color of the line when you create the DirectionsRenderer, using the optional DirectionsRendererOptions struct. This works for me, simply changing the line where the DirectionsRenderer object is created: <!DOCTYPE html> <html> <head> <meta name=”viewport” content=”initial-scale=1.0, user-scalable=no”> <meta charset=”utf-8″> <title>Directions service</title> <link href=”https://google-developers.appspot.com/maps/documentation/javascript/examples/default.css” rel=”stylesheet”> <script src=”https://maps.googleapis.com/maps/api/js?v=3″></script> <script> var directionsDisplay; var directionsService = … Read more