BackgroundLayer

fun BackgroundLayer(layerId: String = remember { generateRandomLayerId("background") }, backgroundLayerState: BackgroundLayerState = remember { BackgroundLayerState() })

The background color or pattern of the map.

This composable function inserts a BackgroundLayer to the map. For convenience, if there's no need to hoist the backgroundLayerState, use BackgroundLayer(layerId, init) with trailing lambda instead.

See also

Parameters

layerId

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

backgroundLayerState

the state holder for BackgroundLayer's properties.


inline fun BackgroundLayer(layerId: String = remember { generateRandomLayerId("background") }, crossinline init: BackgroundLayerState.() -> Unit)

The background color or pattern of the map.

This composable function inserts a BackgroundLayer to the map.

See also

Parameters

layerId

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

init

the lambda that will be applied to the remembered BackgroundLayerState.