SkyLayer

fun SkyLayer(layerId: String = remember { generateRandomLayerId("sky") }, skyLayerState: SkyLayerState = remember { SkyLayerState() })

A spherical dome around the map that is always rendered behind all other layers.

This composable function inserts a SkyLayer to the map. For convenience, if there's no need to hoist the skyLayerState, use SkyLayer(layerId, init) with trailing lambda instead.

Warning: As of v10.6.0, Atmosphere is the preferred method for atmospheric styling. Sky layer is not supported by the globe projection, and will be phased out in future major release.

See also

Parameters

layerId

the ID of the layer, by default, a random id will be generated with UUID.

skyLayerState

the state holder for SkyLayer's properties.


inline fun SkyLayer(layerId: String = remember { generateRandomLayerId("sky") }, crossinline init: SkyLayerState.() -> Unit)

A spherical dome around the map that is always rendered behind all other layers.

This composable function inserts a SkyLayer to the map.

Warning: As of v10.6.0, Atmosphere is the preferred method for atmospheric styling. Sky layer is not supported by the globe projection, and will be phased out in future major release.

See also

Parameters

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 SkyLayerState.