MapStyle

fun MapStyle(style: String, projection: Projection = Projection.default, atmosphereState: AtmosphereState = AtmosphereState.default, terrainState: TerrainState = TerrainState.initial)

A simple composable function to set the style to the map without slots or import configs.

Parameters

style

The Style JSON or Style Uri to be set to the map.

projection

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

atmosphereState

The atmosphere to be set to the map. Defaults to AtmosphereState.default meaning that atmosphere is the default defined in style definition.

terrainState

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