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

Added option to animate pan on invalidateSize() #857

Merged
merged 1 commit into from
Jul 31, 2012

Conversation

ajbeaven
Copy link
Contributor

I thought it might be nice to have the option to animate the map movement when invalidateSize is called rather than the map jumping to its new position.

mourner added a commit that referenced this pull request Jul 31, 2012
Added option to animate pan on invalidateSize()
@mourner mourner merged commit 10ffc86 into Leaflet:master Jul 31, 2012
mourner added a commit that referenced this pull request Jul 31, 2012
@nicooprat
Copy link

It looks like passing :

options: {
    animate: false
}

to invalidateSize() has no effect anymore ; the animation is always triggered. I took a look in leaflet.js and found that _rawPanBy is called and seems to animate anyway (no options concerning animation is passed).

Any idea on 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

Successfully merging this pull request may close these issues.

3 participants