getStyle

Get the Style of the map asynchronously.

Parameters

onStyleLoaded

the callback to be invoked when the style is fully loaded

fun getStyle(onStyleLoaded: Style.OnStyleLoaded)

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

fun getStyle(): Style?