Take zoom constraint into account within _fitBounds when constraints = true and immediately = false

This commit is contained in:
Tom 2023-02-07 18:12:26 -05:00
parent ca5cc84988
commit 16fc72d8fb

View File

@ -711,6 +711,8 @@ $.Viewport.prototype = {
if(constraints){
this.panTo(center, false);
newZoom = this._applyZoomConstraints(newZoom);
this.zoomTo(newZoom, null, false);
var constrainedBounds = this.getConstrainedBounds();