From 4b35b920a11c79469728708c29be89ad296ad54a Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 27 Jun 2019 15:13:48 +0200 Subject: [PATCH] Pass the opt_direction value to the getConstrainedResolution function --- src/ol/View.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/View.js b/src/ol/View.js index b3abc05f89..ab9155b9b8 100644 --- a/src/ol/View.js +++ b/src/ol/View.js @@ -1472,7 +1472,7 @@ class View extends BaseObject { */ getConstrainedZoom(targetZoom, opt_direction) { const targetRes = this.getResolutionForZoom(targetZoom); - return this.getZoomForResolution(this.getConstrainedResolution(targetRes)); + return this.getZoomForResolution(this.getConstrainedResolution(targetRes, opt_direction)); } /**