Circle Layer
fun CircleLayer(sourceState: SourceState, layerId: String = remember {
generateRandomLayerId("circle")
}, circleLayerState: CircleLayerState = remember { CircleLayerState() })
A filled circle.
This composable function inserts a CircleLayer to the map. For convenience, if there's no need to hoist the circleLayerState, use CircleLayer(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.
circle Layer State
the state holder for CircleLayer's properties.
inline fun CircleLayer(sourceState: SourceState, layerId: String = remember {
generateRandomLayerId("circle")
}, crossinline init: CircleLayerState.() -> Unit)
A filled circle.
This composable function inserts a CircleLayer 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 CircleLayerState.