I am using this code to get directions between two points. Is it possible to change the color of the route from blue? I am not using polyline in my code.
Thanx in ad
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:
Directions service Start: Chicago St Louis Joplin, MO Oklahoma City Amarillo Gallup, NM Flagstaff, AZ Winona Kingman Barstow San Bernardino Los Angeles End: Chicago St Louis Joplin, MO Oklahoma City Amarillo Gallup, NM Flagstaff, AZ Winona Kingman Barstow San Bernardino Los Angeles