You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to detect when a raster layer has finished retrieving all tiles? My particular use case is to update the state when the raster layer is retrieving tiles and then again when it has finished.
I'm also attempting to do the same thing and am unable to figure out a good solution.
I've been trying to use mapbox's built in events but map.areTilesLoaded() is set to true before the raster tiles have actually been loaded and rendered.
this.map.on('sourcedata', (e) => {
if (this.map.areTilesLoaded()) {
// Do stuff here
}
}
Is it possible to detect when a raster layer has finished retrieving all tiles? My particular use case is to update the state when the raster layer is retrieving tiles and then again when it has finished.
here is my layer/source setup:
The text was updated successfully, but these errors were encountered: