MapStyle

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

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.