google-maps-documentation

PolylineOptions interface

google.maps.PolylineOptions interface

PolylineOptions object used to define the properties that can be set on a Polyline.

Properties
clickable
Type:  boolean optional
Indicates whether this Polyline handles mouse events. Defaults to true.
draggable
Type:  boolean optional
If set to true, the user can drag this shape over the map. The geodesic property defines the mode of dragging. Defaults to false.
editable
Type:  boolean optional
If set to true, the user can edit this shape by dragging the control points shown at the vertices and on each segment. Defaults to false.
geodesic
Type:  boolean optional
When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth. When false, edges of the polygon are rendered as straight lines in screen space. Note that the shape of a geodesic polygon may appear to change when dragged, as the dimensions are maintained relative to the surface of the earth. Defaults to false.
icons
Type:  Array<IconSequence> optional
The icons to be rendered along the polyline.
map
Type:  Map optional
Map on which to display Polyline.
path
Type:  MVCArray<LatLng>|Array<LatLng|LatLngLiteral> optional
The ordered sequence of coordinates of the Polyline. This path may be specified using either a simple array of LatLngs, or an MVCArray of LatLngs. Note that if you pass a simple array, it will be converted to an MVCArray Inserting or removing LatLngs in the MVCArray will automatically update the polyline on the map.
strokeColor
Type:  string optional
The stroke color. All CSS3 colors are supported except for extended named colors.
strokeOpacity
Type:  number optional
The stroke opacity between 0.0 and 1.0.
strokeWeight
Type:  number optional
The stroke width in pixels.
visible
Type:  boolean optional
Whether this polyline is visible on the map. Defaults to true.
zIndex
Type:  number optional
The zIndex compared to other polys.