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.
Deprecated: Use Image component instead.
Style Properties
Controls layer visibility.
Label placement relative to its geometry.
Name of image in sprite to use for drawing an icon.
Scales the original size of the icon. Minimum: 0
Rotates the icon clockwise in degrees.
The opacity at which the icon will be drawn. Range: 0-1.
The color of the icon. This can only be used with SDF icons.
Value to use for a text label.
Font stack to use for displaying text.
Font size in pixels. Minimum: 0
The opacity at which the text will be drawn. Range: 0-1.
The color with which the text will be drawn.
The color of the text’s halo, which helps it stand out from backgrounds.
Distance of halo to the font outline in pixels. Minimum: 0