-
Notifications
You must be signed in to change notification settings - Fork 290
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: yandex zoom animation #284
Conversation
a8a2dab
to
decdd27
Compare
Unfortunately animation is delayed, and not synchronized with other leaflet objects.
BTW, |
I see. I've added a zoomanim event, it's no longer delayed, but the sync isn't 100% accurate. |
Normally we do not need to implement animation by ourselves, as it processed by Leaflet, via css transition. I do not know why transition is not applied to ymaps container. At first I thought that it may be related to asynchronousness of ymaps API (all that So question is what's wrong with ymaps container? Why it is not processed by leaflet animation routines? |
Now |
@johnd0e I can't reproduce this. Perhaps it called twice because you have two yandex layers on the map? There are two of them in yandex.html example (normal map and traffic map). Try to disable traffic. |
Sorry, I meant
|
Should this one be closed in favor of #285 ? |
No. |
As I figured out, GoogleMutant is based on |
Here is the part which implements animation in GridLayer. With yandex canvas it should be even simpler, more like in ImageOverlay:
It would be better to avoid using private methods |
So we can close this one ? |
Sure, if @oranmor is happy with my fix |
Closing in favor of #285 |
#129