MapboxStandardStyle

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

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.

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.

lightsState

The lights to be set to the map. By default, no changes to the current lights defined in style.

styleTransition

Transition options applied when loading the style.

standardStyleConfigurationState

The configurations for MapboxStandardStyle.


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

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.

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.

lightsState

The lights to be set to the map. By default, no changes to the current lights defined in style.

styleTransition

Transition options applied when loading the style.

init

The lambda that will be applied to the remembered StandardStyleConfigurationState.