Optional ExperimentalaltitudeAltitude of the VerticalLine, in meters.
Defines the reference height used together with VerticalLineStyle.altitudeReference to determine the vertical placement of the line.
Supported values:
Notes:
altitudeReference = 'top', the altitude defines the top of the line;
the base is fixed at 0 m.altitudeReference = 'base', the altitude defines the base of the line;
the top must be specified using VerticalLineStyle.offsetZ.altitude is 'terrain', the line ends at
that feature altitude; offsetZ is applied as an additional upward offset.offsetZ defines the line height above terrain.Examples:
// Top = 100 m, Base = 0 m
{ type: "VerticalLine", altitudeReference: "top", altitude: 100 }
// Base = terrain, Top = terrain + 2 m
{ type: "VerticalLine", altitudeReference: "base", altitude: "terrain", offsetZ: "2m" }
// Base = 0, Top = feature Z (if available)
{ type: "VerticalLine", altitudeReference: "top", altitude: true }
Optional ExperimentalaltitudeDefines how the altitude value is interpreted for the VerticalLine.
By default, the meaning of altitude depends on the style type:
altitude defines the center position.Supported values:
'top': the altitude specifies the top of the line; the base is fixed at 0 m (global ground).'base': the altitude specifies the base (bottom) of the line; the top must be defined via VerticalLineStyle.offsetZ.Notes:
'terrain' and altitudeReference is not specified,
'base' is automatically assumed (the line stands on the terrain surface).OptionaloffsetVertical offset of the shape along the z-axis.
Shifts or extends the line relative to its reference altitude.
Units:
"1m" for meters).Special notes for VerticalLine:
altitudeReference defines which point the altitude value refers to (top or base).offsetZ always extends the line upward from the reference point, regardless of whether
altitudeReference is 'base' or 'top'.altitude: 'terrain', offsetZ shifts the line relative to the terrain surface.// Move the VerticalLine 8 px upward from its reference
{ type: "VerticalLine", zIndex: 0, stroke: "black", offsetZ: 8 }
// Base = terrain, extend line 1 m upward
{ type: "VerticalLine", zIndex: 0, stroke: "black", altitude: "terrain", altitudeReference: "base", offsetZ: "1m" }
// Top = terrain, extend line 2 m upward
{ type: "VerticalLine", zIndex: 0, stroke: "black", altitude: "terrain", altitudeReference: "top", offsetZ: "2m" }
OptionalopacityDefines the opacity of the style. The value must be between 0.0 (fully transparent) and 1.0 (fully opaque). It is valid for all style types.
OptionalstrokeSets the stroke color of the shape.
Color for a detailed list of possible supported formats.
Indicates type of the shape to render.
Indicates the drawing order within a layer. Styles with larger zIndex value are rendered above those with smaller values. The zIndex is defined relative to the "zLayer" property. If "zLayer" is defined all zIndex values are relative to the "zLayer" value.
OptionalzIndicates drawing order across multiple layers. Styles using zLayer with a high value are rendered on top of zLayers with a low value. If no zLayer is defined, it will fall back to the LayerStyle.zLayer or depend on the display layer order. The first (lowest) layer has a zLayer value of 1.
Interface for configuring the visual appearance of VerticalLines.