Raster Layer
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
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 Layer State
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
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 RasterLayerState.