Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google maps api v3 polyline default options? [closed]

I am working on A Web app which is using GOOGLE MAPS API v3.

I am drawing a poly-line which connects with Google Way Points poly-line.

I want my poly-line to be of the same color and weight as that of Way Points poly-line.

But I am not able to figure out what is the color code and stroke weight of that default Google way points Blue-greenish line?

like image 503
user3493077 Avatar asked Apr 26 '14 06:04

user3493077


1 Answers

I couldn't find anywhere about default stroke options so, I played a bit myself, it is very close to defaults I think:

directionsDisplay = new google.maps.DirectionsRenderer({
   polylineOptions: {
       strokeColor: '#0088FF',
       strokeWeight: 6,
       strokeOpacity: 0.6
   }
});

DEMO Fiddle with added above parameters into Google's example: http://jsfiddle.net/z9hJd/

  • You can look at http://www.colorpicker.com/ to check colors and play with strokeColor yourself.
like image 181
alpakyol Avatar answered Sep 28 '22 08:09

alpakyol