Creates WIP interface for detecting when composite map layers become idle by combining Mapbox's map.on('idle', ...) and loading state tracking for Raster layers (functionally captures when raster tiles are finished painting).
When benchmarkMode is passed to Map, it will register itself in an object stored in window._map. To listen for idle events, you can do something like:
Creates WIP interface for detecting when composite map layers become idle by combining Mapbox's
map.on('idle', ...)
and loading state tracking forRaster
layers (functionally captures when raster tiles are finished painting).When
benchmarkMode
is passed toMap
, it will register itself in an object stored inwindow._map
. To listen for idle events, you can do something like: