RasterLayer
fun RasterLayer( sourceState: SourceState, layerId: String = remember {
generateRandomLayerId("raster")
}, rasterLayerState: RasterLayerState = remember { RasterLayerState() })
Raster map textures such as satellite imagery.
This composable function inserts a RasterLayer to the map. For convenience, if there's no need to hoist the rasterLayerState, use RasterLayer(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.
rasterLayerState
the state holder for RasterLayer's properties.
inline fun RasterLayer( sourceState: SourceState, layerId: String = remember {
generateRandomLayerId("raster")
}, crossinline init: RasterLayerState.() -> Unit)
Raster map textures such as satellite imagery.
This composable function inserts a RasterLayer 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 RasterLayerState.