ClipLayer

fun ClipLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("clip") }, clipLayerState: ClipLayerState = remember { ClipLayerState() })

Layer that removes 3D content from map.

This composable function inserts a ClipLayer to the map. For convenience, if there's no need to hoist the clipLayerState, use ClipLayer(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.

clipLayerState

the state holder for ClipLayer's properties.


inline fun ClipLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("clip") }, crossinline init: ClipLayerState.() -> Unit)

Layer that removes 3D content from map.

This composable function inserts a ClipLayer 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 ClipLayerState.