Whether or not this shape should be draped on top of the terrain.
By default, a shape is draped if it has undefined or zero Z. Otherwise it will not be draped.
You can override the default behaviour by setting this flag true or false. If you explicitly drape a 3D shape, it 2D "shadow" is painted on the terrain.
This setting is only relevant for 3D maps and is ignored for 2D maps.
An object containing the fill style properties. This property used to be a string
specifying the
fill color as a CSS color string. The string
option is still supported but deprecated.
The style object that describes how the inner border of a closed shape is rendered.
The lineType determines how lines between subsequent points will be interpreted. Possible values are SHORTEST_DISTANCE and CONSTANT_BEARING. In case the data is defined in a reference with a GEODETIC coordinate system, lines will be geodetically interpreted (on an ellipsoid). Shapes will be rendered in a cartesian manner in all other cases.
This property is optional; its defaults value is LineType.SHORTEST_DISTANCE
When this shape should be painted in 3D in relation to other 3D data.
Notes:
The style object that describes how the outer border of a closed shape is rendered.
The outer border style is limited to 20 pixels.
An object literal containing the stroke style properties. This property used to be a String
specifying the stroke color as a CSS color string, while the width was specified using the
strokeWidth
property. The stroke
as a string
option, together with the
strokeWidth
option is still supported but deprecated.
Set this property to null to turn off the stroke. When this property is
undefined
, a default
stroke will be shown. This is to avoid that features on the map would be - unintentionally - invisible.
The z-order of this shape. Shapes will be painted from lowest to highest z-order. This property is optional
and defaults to 0
.
A
ShapeStyle
describes how a Shape should be styled. A ShapeStyle defines among others the stroke and fill styling of a shape.Example:
var shapeStyle = { stroke: { color: "rgb(100, 170, 220)", width: 2.5 } };