add On Style Data Loaded Listener
open override fun addOnStyleDataLoadedListener(onStyleDataLoadedListener: OnStyleDataLoadedListener)
Deprecated
This method is deprecated, and will be removed in next major release. use [subscribeStyleDataLoaded] instead.
Replace with
subscribeStyleDataLoaded(styleDataLoadedCallback)
Content copied to clipboard
Add a listener that's going to be invoked whenever the requested style data been loaded. The 'type' property defines what kind of style data has been loaded.
This event may be useful when application needs to modify style layers or sources and add or remove sources before style is fully loaded.