BackgroundLayer

fun BackgroundLayer(layerId: String = remember { generateRandomLayerId("background") }, 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

layerId

the ID of the layer, by default, a random id will be generated with UUID.

backgroundColor

The color with which the background will be drawn.

backgroundEmissiveStrength

Controls the intensity of light emitted on the source features.

backgroundOpacity

The opacity at which the background will be drawn.

backgroundPattern

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.

minZoom

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

maxZoom

The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.