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

Add fitBounds method for map #96

Closed
ledovsky opened this issue Jan 15, 2018 · 1 comment · Fixed by #737
Closed

Add fitBounds method for map #96

ledovsky opened this issue Jan 15, 2018 · 1 comment · Fixed by #737

Comments

@ledovsky
Copy link

Hi, thanks for the lib. It's awesome!

I havn't found a way to init a map with certain bbox coords. While there is fitBounds() method in Leaflet documentation http://leafletjs.com/reference-1.3.0.html#map-fitbounds

@SylvainCorlay
Copy link
Member

@ledovsky this is actually a tricky question because multiple views of the same map can exist, especially with the JupyterLab integration.

Now the bounds of a map correspond to the smallest rectangle covering the geographical area shown by all the views of the same map.

For a fitbounds to make sense, we would probably want to smallest view to be able to contain the specified bounds...

What d o you think?

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

Successfully merging a pull request may close this issue.

2 participants