zoom methods calls removed

This commit is contained in:
Jose 2017-07-01 00:12:41 +02:00
parent fba70355cd
commit 0fe5dad769

View File

@ -741,18 +741,9 @@ $.Viewport.prototype = {
*/
// Added to improve constrained panning
getConstrainedBounds: function( immediately ) {
var actualZoom = this.getZoom(),
constrainedZoom = Math.max(
Math.min( actualZoom, this.getMaxZoom() ),
this.getMinZoom()
),
bounds,
var bounds,
constrainedBounds;
if ( actualZoom != constrainedZoom ) {
this.zoomTo( constrainedZoom, this.zoomPoint, immediately );
}
bounds = this.getBounds();
constrainedBounds = this._applyBoundaryConstraints( bounds, immediately );