Props
A unique identifier for the layer.
If true, references an existing layer in the style instead of creating a new one.
The source from which to obtain the data to style. Inferred from parent source only if the layer is a direct child to it.
Inserts the layer above the specified layer ID.
Inserts the layer below the specified layer ID.
Inserts the layer at a specified index in the layer stack.
The minimum zoom level at which the layer is visible.
The maximum zoom level at which the layer is visible.
Filters features from the source layer based on a condition.
Customizable style attributes for the background layer.
Style Properties
Controls whether the layer is displayed.
The color with which the background will be drawn.Disabled by:
backgroundPatternName of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, …, 512).
The opacity at which the background will be drawn. Range: 0-1.