We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rather than just taking a latlng center and zoom you should also accept L.latLngBounds.
latlng
zoom
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.
map.fitBounds(geojson.getBounds());
geojson.getBounds()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Rather than just taking a
latlng
center andzoom
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 thegeojson.getBounds()
as the default extent.The text was updated successfully, but these errors were encountered: