RasterParticleLayer
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
sourceState
the source that drives this layer.
layerId
the ID of the layer, by default, a random id will be generated with UUID.
rasterParticleLayerState
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
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 RasterParticleLayerState.