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