Props
A unique identifier for the layer.
If true, references an existing layer in the style.
The source from which to obtain data.
Identifier of the layer within the source.
Inserts the layer above the specified layer ID.
Inserts the layer below the specified layer ID.
The slot this layer is assigned to. v11 only
Minimum zoom level for layer visibility.
Maximum zoom level for layer visibility.
Filters features based on a condition.
Customizable style attributes.
Style Properties
Controls layer visibility.
The display of line endings.
The display of lines when joining.
The opacity at which the line will be drawn. Range: 0-1.
The color with which the line will be drawn. Disabled by: linePattern
Stroke thickness in pixels. Minimum: 0
Draws a line casing outside of a line’s actual path. Value indicates the width of the inner gap in pixels.
The line’s offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left.
Blur applied to the line, in pixels. Minimum: 0
Specifies the lengths of the alternating dashes and gaps that form the dash pattern. Disabled by: linePattern
Name of image in sprite to use for drawing image lines.