OptionaldrapedWhether 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.
OptionaldrapeThe 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.
OptionalfillAn 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.
OptionalinnerThe style object that describes how the inner border of a closed shape is rendered.
OptionallineThe 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
OptionalocclusionWhen this shape should be painted in 3D in relation to other 3D data.
Notes:
OptionalouterThe style object that describes how the outer border of a closed shape is rendered.
The outer border style is limited to 20 pixels.
OptionalstrokeAn 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.
OptionalzThe z-order of this shape. Shapes will be painted from lowest to highest z-order. This property is optional
and defaults to 0.
A
ShapeStyledescribes how a Shape should be styled. A ShapeStyle defines among others the stroke and fill styling of a shape.Example: