add On Style Data Loaded Listener
Deprecated
This method is deprecated, and will be removed in next major release. use [subscribeStyleLoaded] instead.
Replace with
subscribeStyleLoaded(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.