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

Add zoom animation, fix #20 #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add zoom animation, fix #20 #21

wants to merge 3 commits into from

Conversation

corg
Copy link

@corg corg commented Sep 12, 2018

Fixed animation on zoom (see #20) by adding zoomanim event handler, which applies CSS transformation to canvas element similar to how Leaflet's ImageOverlay does it.

after

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.

@DavidLibeau
Copy link

That's cool, thanks! 👍

@jcimoch
Copy link

jcimoch commented Oct 16, 2018

Is it going to be merged?

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

Successfully merging this pull request may close these issues.

None yet

4 participants