How to flyTo? #517
Replies: 3 comments 1 reply
-
I figured a way to do it, not sure if this is an official one though. And it is to update the center every time the map moves away from the original coords. This way the stop config passed down to setCamera doesn't remain stale.
|
Beta Was this translation helpful? Give feedback.
-
Hmmm will have to investigate – does this not work on Android and iOS when calling again with the same coordinates? Which version are you using? |
Beta Was this translation helpful? Give feedback.
-
Similar issue here. If I call Device: Pixel 7a(Android 15), iPhone 12(iOS 18.1.1)
|
Beta Was this translation helpful? Give feedback.
-
I'm having trouble getting the flyTo to function properly.
The intended behavior is when the user drags the map away, they would be able to fly back to their location. This works well only for the first time I click on re center. Are these functions memoized and need new data every time? I did try to change the lng and lat given to the flyTo function and it works whenever I change them, though in my case the location of the user will be fixed.
Help will be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions