Replies: 2 comments 3 replies
-
There is no callback method that tells you when a tile is going to be requested. You could create a new layer that extends the MVTLayer and overwrite the |
Beta Was this translation helpful? Give feedback.
2 replies
-
I think you're looking for This prop is inherited from Layer and returns |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I was wondering if anyone had any ideas for tracking the loading state of an MVTLayer. Specifically whether or not it is currently fetching any tiles.
My idea was to track the number of tile requests (increment a value for each new request), then using
onTileLoad
andonTileError
I would decrement that count, and if it is 0, then it isn't loading. However, I am having trouble finding a callback or something to let me hook into the first part to increment when a new tile is being requested.Let me know if there are any alternatives to this as well!
Beta Was this translation helpful? Give feedback.
All reactions