Skip to content

Conversation

davidjb
Copy link
Contributor

@davidjb davidjb commented Jul 5, 2013

Allow options to be passed to Map.setMaxBounds such that they can passed through to setView. Without this, animation (zooming/panning) can't be customised. In my specific use case, I do this:

map.setMaxBounds([[-86, -250], [86, 250]], {animate:false})

to just force the map to go to those bounds without panning or zooming.

This is my first pull request -- so when I'm updating documentation regarding this, I'll need to have another pull request for that. Should I do that now or wait for this to accepted?

davidjb added a commit to davidjb/Leaflet that referenced this pull request Jul 5, 2013
mourner added a commit that referenced this pull request Jul 11, 2013
@mourner mourner merged commit c663392 into Leaflet:master Jul 11, 2013
@mourner
Copy link
Member

mourner commented Jul 11, 2013

Thanks, merged.

mourner added a commit that referenced this pull request Jul 17, 2013
Document changes to setMaxBounds method as per #1834
mourner added a commit that referenced this pull request Jul 17, 2013
…-pages

# By David Beitey
# Via David Beitey (1) and Vladimir Agafonkin (1)
* 'gh-pages' of https://github.com/Leaflet/Leaflet:
  Document changes to setMaxBounds method as per #1834
@davidjb davidjb changed the title Allow options to be passed to Map.setMaxBounds Allow options to be passed to Map.setMaxBounds Apr 1, 2014
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.

2 participants