Background Layer
The background color or pattern of the map.
See also
Parameters
the ID of the layer
Constructors
Types
Functions
The color with which the background will be drawn. Default value: "#000000".
Set the BackgroundColor property transition options
DSL for backgroundColorTransition.
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
Set the BackgroundEmissiveStrength property transition options
DSL for backgroundEmissiveStrengthTransition.
The opacity at which the background will be drawn. Default value: 1. Value range: 0, 1
Set the BackgroundOpacity property transition options
DSL for backgroundOpacityTransition.
Name 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). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
Orientation of background layer. Default value: "map".
Bind the layer to the Style.
Bind the layer to the map controller.
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
Whether this layer is displayed.