loadStyleJson

fun loadStyleJson(styleJson: String, styleTransitionOptions: TransitionOptions? = null, onStyleLoaded: Style.OnStyleLoaded? = null, onMapLoadErrorListener: OnMapLoadErrorListener? = null)
fun loadStyleJson(styleJson: String, onStyleLoaded: Style.OnStyleLoaded? = null, onMapLoadErrorListener: OnMapLoadErrorListener? = null)

Deprecated

Loading style was revisited in v11, this method is deprecated. IMPORTANT: onMapLoadErrorListener will not be triggered anymore, please refer to documentation for new method to understand how to handle errors.

Replace with

loadStyle(style, onStyleLoaded)

Legacy method to load style, please refer to deprecation message for more details.


fun loadStyleJson(styleJson: String, onStyleLoaded: Style.OnStyleLoaded)

Deprecated

Loading style was revisited in v11, this method is deprecated.

Replace with

loadStyle(style, onStyleLoaded)

Legacy method to load style, please refer to deprecation message for more details.


fun loadStyleJson(styleJson: String)

Deprecated

Loading style was revisited in v11, this method is deprecated.

Replace with

loadStyle(style)

Legacy method to load style, please refer to deprecation message for more details.