FillLayer

fun FillLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("fill") }, fillLayerState: FillLayerState = remember { FillLayerState() })

A filled polygon with an optional stroked border.

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

fillLayerState

the state holder for FillLayer's properties.


inline fun FillLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("fill") }, crossinline init: FillLayerState.() -> Unit)

A filled polygon with an optional stroked border.

This composable function inserts a FillLayer 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 FillLayerState.