HillshadeLayer

fun HillshadeLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("hillshade") }, hillshadeLayerState: HillshadeLayerState = remember { HillshadeLayerState() })

Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.

This composable function inserts a HillshadeLayer to the map. For convenience, if there's no need to hoist the hillshadeLayerState, use HillshadeLayer(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.

hillshadeLayerState

the state holder for HillshadeLayer's properties.


inline fun HillshadeLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("hillshade") }, crossinline init: HillshadeLayerState.() -> Unit)

Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.

This composable function inserts a HillshadeLayer 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 HillshadeLayerState.