Skip to content

Added option to animate pan on invalidateSize()#857

Merged
mourner merged 1 commit intoLeaflet:masterfrom
ajbeaven:AnimatedInvalidateSize
Jul 31, 2012
Merged

Added option to animate pan on invalidateSize()#857
mourner merged 1 commit intoLeaflet:masterfrom
ajbeaven:AnimatedInvalidateSize

Conversation

@ajbeaven
Copy link
Copy Markdown
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
Copy Markdown

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