Replies: 1 comment
-
I think it because setgeojson methods is async |
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
-
Hello, I want to keep the icon in the center of the map when it moves. I am updating the icon's location and the map's center to make it look like the camera is following the icon. However, there seems to be a slight shake, as if the updates to the icon's location and the map's center are not happening in the same frame. What can I do to keep the icon still in the map's center and ensure it looks smooth?
This is what it looks like in my simulation:
2024-07-16.100057.mp4
And I want it to look like this:
90e9b1699bf988a221648b4d59050c4e.mp4
Here is my code:
Looking forward to your reply.
Beta Was this translation helpful? Give feedback.
All reactions