How to check if mapbox layer is ready?

Viewed 4376

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?

1 Answers
Related