Merge pull request #2293 from pearcetm/zoom-constraints-fix

Take zoom constraint into account within _fitBounds
This commit is contained in:
Ian Gilman 2023-03-10 13:49:41 -08:00 committed by GitHub
commit cbb0a009e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();