Optional ExperimentalaltitudeAltitude of the Line in meters.
Describes the vertical distance from the global ground plane (0m) to the Line.
Supported values:
false (default): place at 0m.
true: use the altitude (z) from the feature geometry if present, else 0. Not re-aligned to the rendered terrain. If the geometry altitude source differs from the TerrainTileLayer elevation source/resolution, the Line is not clamped to (and may intersect) the rendered terrain, so it can appear slightly above or below the visible surface.
number: fixed absolute altitude in meters. Also not adjusted when terrain tiles load; may not perfectly sit on the terrain unless both use exactly the same elevation source, datum and resolution.
'terrain': sample (clamp to) the current terrain surface height. While the terrain tile is not yet loaded (or no terrain layer exists) the altitude is 0 and updates once data becomes available.
Notes:
OptionalfromDefine the starting position of a segment of the entire line in %. A Segment allows to display and style parts of the entire line individually. The value must be between 0 and 1. The Default is 0.
OptionaloffsetOffset a line to the left or right side in pixel or meter. A positive values offsets to the right side, a negative value offsets to the left. The side is defined relative to the direction of the line geometry. The default unit is pixels. To define the offset in meters a string that contains the offset value and ends with "m" must be used. Applies to Line style only.
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.
Optional ExperimentalscaleControls whether a Line's strokeWidth follows perspective at the feature's actual altitude. When disabled, the Line is scaled as if it were at ground level.
Scaling is enabled by default for meter-based stroke widths and when altitude resolves to "terrain".
OptionalstrokeSets the stroke color of the Line.
Color for a detailed list of possible supported formats.
OptionalstrokeThe strokeDasharray attribute controls the pattern of dashes and gaps used to stroke paths.
It's an array of
OptionalstrokeSpecifies the URL of the image to be rendered at the positions of the dashes. If strokeDashimage is defined, only the first dash and gap definition of the LineStyle.strokeDasharray pattern is used. The dashimage will be colored with the color defined in stroke.
OptionalstrokeThis controls the shape of the ends of lines. there are three possible values for strokeLinecap:
If "strokeLinecap" is used in combination with "altitude", only "butt" is supported for "strokeLinecap".
OptionalstrokeThe joint where the two segments in a line meet is controlled by the strokeLinejoin attribute, There are three possible values for this attribute:
If "strokeLinejoin" is used in combination with "altitude", the use of "round" is not supported.
Sets the width of the line. The unit of strokeWidth is defined in pixels. For Polygons that are using PolygonStyle.extrude, the maximum possible strokeWidth is 1.0 pixel. For Styles of type Line the strokeWidth can also be defined in meters by using a string: "${width}m".
OptionaltoDefine the end position of a segment of the entire line in %. A Segment allows to display and style parts of the entire line individually. The value must be between 0 and 1. The Default is 1.
Specifies the type of style to render.
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 Lines.