I'm making a point map with leaflet, and at the beginning I have to define the view along with the scale;
var map = L.map('map').
setView([41.66, -4.72],
5);
It happens that after I have a diagram of points that will be generated automatically, with different coordinates, I would like if the view could generate coordinates that encompassed the diagrams of points at a proportional scale.