Background Layer
fun BackgroundLayer(layerId: String, backgroundColor: BackgroundColor = BackgroundColor.default, backgroundColorTransition: Transition = Transition.default, backgroundEmissiveStrength: BackgroundEmissiveStrength = BackgroundEmissiveStrength.default, backgroundEmissiveStrengthTransition: Transition = Transition.default, backgroundOpacity: BackgroundOpacity = BackgroundOpacity.default, backgroundOpacityTransition: Transition = Transition.default, backgroundPattern: BackgroundPattern = BackgroundPattern.default, visibility: Visibility = Visibility.default, minZoom: MinZoom = MinZoom.default, maxZoom: MaxZoom = MaxZoom.default)
The background color or pattern of the map.
See also
Parameters
layer Id
the ID of the layer
background Color
The color with which the background will be drawn.
background Emissive Strength
Controls the intensity of light emitted on the source features.
background Opacity
The opacity at which the background will be drawn.
background Pattern
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.
visibility
Whether this layer is displayed.
min Zoom
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
max Zoom
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.