MapboxStandardStyle

fun MapboxStandardStyle(styleImportsContent: @Composable StyleImportsScope.() -> Unit? = null, topSlot: @Composable () -> Unit? = null, middleSlot: @Composable () -> Unit? = null, bottomSlot: @Composable () -> Unit? = null, lightPreset: LightPresetValue = LightPresetValue.INITIAL, projection: Projection = Projection.INITIAL, atmosphereState: AtmosphereState = remember { AtmosphereState() }, terrainState: TerrainState = TerrainState.INITIAL, lightsState: LightsState = LightsState.INITIAL)

The convenient composable function to set a Mapbox Standard style to the map, with available slots and config options.

Parameters

styleImportsContent

The style imports to be added to the current style, note layers and annotations shouldn't be added to this block.

topSlot

The content to be set to the top slot of the Mapbox Standard style.

middleSlot

The content to be set to the middle slot of the Mapbox Standard style.

bottomSlot

The content to be set to the bottom slot of the Mapbox Standard style.

lightPreset

The LightPresetValue settings of the Mapbox Standard Style, available lightPresets including "day", "night", "dawn", "dusk".

projection

The projection to be set to the map. Defaults to Projection.DEFAULT meaning that projection value is taken from the Standard style definition.

atmosphereState

The atmosphere to be set to the map By default, no changes to the current atmosphere.

terrainState

The terrain to be set to the map. Defaults to initial state meaning no custom terrain is added, default value is taken from Standard style definition.