Symbol Layer
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
source State
the source that drives this layer.
layer Id
the ID of the layer, by default, a random id will be generated with UUID.
symbol Layer State
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
source State
the source that drives this layer.
layer Id
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.