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

Should accept bounds #1

Open
rhewitt22 opened this issue Mar 16, 2017 · 0 comments
Open

Should accept bounds #1

rhewitt22 opened this issue Mar 16, 2017 · 0 comments

Comments

@rhewitt22
Copy link

rhewitt22 commented Mar 16, 2017

Rather than just taking a latlng center and zoom you should also accept L.latLngBounds.

Use case:
I would like to zoom the map out to the full extent of a geojson layer.

I do the following to initialize the map:
map.fitBounds(geojson.getBounds());. I should be able to pass the geojson.getBounds() as the default extent.

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

No branches or pull requests

1 participant