Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Markers overlay has no zoom animation #20

Open
corg opened this issue Sep 12, 2018 · 0 comments
Open

Markers overlay has no zoom animation #20

corg opened this issue Sep 12, 2018 · 0 comments

Comments

@corg
Copy link

corg commented Sep 12, 2018

When zooming in our out, markers are "frozen" and are refreshed only when zoom animation ends:

before

suxil added a commit to suxil/Leaflet.Canvas-Markers that referenced this issue May 8, 2020
Fixed animation on zoom (see eJuke#20) by adding zoomanim event handler, which applies CSS transformation to canvas element similar to how Leaflet's ImageOverlay does it.

Also removed transform-origin: 50% 50% from canvas element since it only got in the way of calculations for zoom animation - the only place where CSS transformations were used.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant