awaitLoadStyle

Load a new style from a style extension, suspends until style is loaded.

Parameters

styleExtension

the style extension to load

transitionOptions

the transition options to use when loading the style


suspend fun MapboxMap.awaitLoadStyle(style: String): Style

Load a new style from a style URI or JSON, suspends until style is loaded.

Parameters

styleUri

the style URI to load

transitionOptions

the transition options to use when loading the style