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