Optional
drapedWhether this shape should be draped on terrain, or not be draped at all.
This property only exists for backwards compatibility. You should use drapeTarget instead.
false
is equivalent to DrapeTarget.NOT_DRAPED and true
is equivalent to
DrapeTarget.TERRAIN.
If draped
or drapeTarget
is not specified and the shape has zero Z, it will be draped on terrain.
If it has non-zero Z, it will not be draped.
If you explicitly drape a 3D shape, its 2D "shadow" is painted on the terrain.
This setting is only relevant for 3D geospatial maps. For 2D maps and 3D cartesian maps, this setting is ignored and DrapeTarget.NOT_DRAPED is used.
Use drapeTarget instead.
Optional
drapeThe drape target of this shape.
Indicates if this shape should be draped on terrain, 3D Tiles meshes, not at all.
If draped
or drapeTarget
is not specified and the shape has zero Z, it will be draped on terrain.
If it has non-zero Z, it will not be draped.
If you explicitly drape a 3D shape, its 2D "shadow" is painted on the terrain.
This setting is only relevant for 3D geospatial maps. For 2D maps and 3D cartesian maps, this setting is ignored and DrapeTarget.NOT_DRAPED is used.
Optional
fillAn 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.
Optional
innerThe style object that describes how the inner border of a closed shape is rendered.
Optional
lineThe 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
Optional
occlusionWhen this shape should be painted in 3D in relation to other 3D data.
Notes:
Optional
outerThe style object that describes how the outer border of a closed shape is rendered.
The outer border style is limited to 20 pixels.
Optional
strokeAn 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.
Optional
zThe 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: