SymbolLayer

fun SymbolLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("symbol") }, symbolLayerState: SymbolLayerState = remember { SymbolLayerState() })

An icon or a text label.

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

See also

Parameters

sourceState

the source that drives this layer.

layerId

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

symbolLayerState

the state holder for SymbolLayer's properties.


inline fun SymbolLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("symbol") }, crossinline init: SymbolLayerState.() -> Unit)

An icon or a text label.

This composable function inserts a SymbolLayer to the map.

See also

Parameters

sourceState

the source that drives this layer.

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 SymbolLayerState.