getStyle

fun getStyle(onStyleLoaded: Style.OnStyleLoaded)

Get the Style of the map asynchronously.

Parameters

onStyleLoaded

the callback to be invoked when the style is fully loaded

fun getStyle(): Style?

Get the Style of the map synchronously, will return null is style is not loaded yet.