Map Style
A simple composable function to set the style to the map without slots or import configs.
Parameters
The Style JSON or Style Uri to be set to the map.
The style imports to be added to the current style, note layers and annotations shouldn't be added to this block.
The state holder for the Style.
Deprecated
Use overloaded MapStyle composable function with StyleState
A simple composable function to set the style to the map without slots or import configs.
Parameters
The Style JSON or Style Uri to be set to the map.
The style imports to be added to the current style, note layers and annotations shouldn't be added to this block.
The projection to be set to the map. Defaults to Projection.DEFAULT meaning that projection value is taken from the style definition.
The atmosphere to be set to the map. By default, no changes to the current atmosphere.
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.
The lights to be set to the map. By default, no changes to the current lights defined in style.
Transition options applied when loading the style.