Raster Particle Layer
fun RasterParticleLayer(sourceState: SourceState, layerId: String = remember {
generateRandomLayerId("raster-particle")
}, rasterParticleLayerState: RasterParticleLayerState = remember { RasterParticleLayerState() })
Particle animation driven by textures such as wind maps.
This composable function inserts a RasterParticleLayer to the map. For convenience, if there's no need to hoist the rasterParticleLayerState, use RasterParticleLayer(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.
raster Particle Layer State
the state holder for RasterParticleLayer's properties.
inline fun RasterParticleLayer(sourceState: SourceState, layerId: String = remember {
generateRandomLayerId("raster-particle")
}, crossinline init: RasterParticleLayerState.() -> Unit)
Particle animation driven by textures such as wind maps.
This composable function inserts a RasterParticleLayer 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 RasterParticleLayerState.