Replies: 1 comment
-
Hi @mxmzb What is your use case for having the controlled zoom? One thing you can try:
This way you can keep track of the current map state, although not in real time but only when the map idles. And you also can set the zoom from some other part of your app and the map should react accordingly with the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I have bound a scroll value to the zoom prop of the map, so as the user scrols the map zooms in or out. This works perfect on my M1, however on phones and older machines it starts lagging (or if I throttle the CPU on my mac). I guess it's because the state changes on every bit of user scroll, so there is a lot of rerenders. I am wondering if there is a way to improve the performance here smhw (the tile loading of the map also gets a little clunkier with throttled CPU, but that's quite likely out of this components control anyway)?
Beta Was this translation helpful? Give feedback.
All reactions