Scaling is not performed in the event boxzoomend, but rather in the BoxZoom handler. Let me give the source code of the leaflet fromsrc/map/handler/Map.BoxZoom.js :
_onMouseUp: function (e) {
...
this._map
.fitBounds(bounds)
.fire('boxzoomend', {boxZoomBounds: bounds});
},
, BoxZoom, , .
, , , .
BoxZoom:
L.Map.BoxPrinter = L.Map.BoxZoom.extend({
... _onMouseUp...
_onMouseUp: function (e) {
... :
...
console.log(bounds);
this._map.fire('boxzoomend', {boxZoomBounds: bounds});
}
}
, :
L.Map.mergeOptions({boxPrinter: true});
L.Map.addInitHook('addHandler', 'boxPrinter', L.Map.BoxPrinter);
, BoxZoom :
L.Map.mergeOptions({boxZoom: false});
.