Default google maps api v3 options for polyline?

I am working on a web application that uses the GOOGLE MAPS v3 API .

I draw poly-linethat connects with Google Way Points poly-line.

I want my polyline to have the same color and weight as y Way Points poly-line.

But I can’t understand what the color code is and the stroke weight of that key item by default in Google. Blue-green line?

+4
source share
1 answer

I could not find anywhere in the default stroke options, so I played a little myself, it is very close to the default, I think:

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

DEMO Fiddle Google: http://jsfiddle.net/z9hJd/

+10

Source: https://habr.com/ru/post/1538169/


All Articles