Skip to content
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

Zoom Icons Synchronously #4

Open
LukePrior opened this issue Jun 28, 2021 · 2 comments
Open

Zoom Icons Synchronously #4

LukePrior opened this issue Jun 28, 2021 · 2 comments

Comments

@LukePrior
Copy link

LukePrior commented Jun 28, 2021

This rewrite appears to exhibit the same issues as the original plugin in terms of zooming. The icons seem to follow if you pan and zoom at the same time on mobile.

@LukePrior LukePrior reopened this Jun 28, 2021
@LukePrior
Copy link
Author

See the video for an example:

recording_20210628_155307_2.mp4

@ShadowZone
Copy link

I think that has something to do with the implemented moveEnd event listener.
So the tile layer updates on move event, but the canvas layer only updates if you release the finger/mouse. If you look closer, you can see that the map underneath is moving. The markers stay in the same position related to the absolute screen position.

I really don't know if this is fixable, as updating the canvas on move instead of moveEnd would result in a really bad overall performance.
But maybe the author of this plugin has an approach to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants