State Update Causing Halt to Map Interactivity #1848
Unanswered
sebastian-adamo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have a mechanism updating the component state that the map is in every second, but this is causing the interactivity with the map such as the panning to be halted whilst the map is redrawn.
I have tried request animation frame but couldn't seem to get it working. Is this along the correct lines?
Example would be something similar to this - https://github.com/visgl/react-map-gl/blob/7.0-release/examples/geojson-animation/src/app.tsx.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions