How do I check that a Mapbox raster layer is displayed on the map?
My goal is to stop a loading animation. I know I can check if the map itself is ready.
map.on('ready', someFunction)
How do I do something like this but for a specific layer?
How do I check that a Mapbox raster layer is displayed on the map?
My goal is to stop a loading animation. I know I can check if the map itself is ready.
map.on('ready', someFunction)
How do I do something like this but for a specific layer?
There are events for when pieces of data load https://docs.mapbox.com/mapbox-gl-js/api/#mapdataevent, but unfortunately not for when all loading is complete.