CircleLayer
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
sourceState
the source that drives this layer.
layerId
the ID of the layer, by default, a random id will be generated with UUID.
circleLayerState
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
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 CircleLayerState.