-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix output of Map#project during drag pan inertia #2901
Comments
Can you set up a JSFiddle test case to demonstrate the issue? |
I set up a jsfiddle, and found out the problem is actually caused by the map.project(lnglat) function. I was using map.getCenter and map.project at the same time in my project. Somehow it made me thought the problem was caused by getCetner. I was wrong. I'll update the issue title and description. The problem is when I use map.project to project a div to a lnglat position on the map, it drifts form the real position during drag pan inertia animation. JSFiddle is here: |
Yeah, it looks like the same problem that causes |
Hi,how about this problem?Is there any way to fix? |
The pixel position returned from the map.project(lnglat) function drift from the real lnglat position on the map during drag pan inertia animation (the slow down effect after drag stops with speed).
The text was updated successfully, but these errors were encountered: