I'm using Leaflet.js
and would like some way to centre the map on the markers I have so that all are within the user's view when the page launches. If all the markers are clustered in a small area, I would like the map to zoom down to a level that still displays all of them.
I know google maps has an auto-centre function but how would I go about this with Leaflet.js?