Pass the opt_direction value to the getConstrainedResolution function
This commit is contained in:
+1
-1
@@ -1472,7 +1472,7 @@ class View extends BaseObject {
|
|||||||
*/
|
*/
|
||||||
getConstrainedZoom(targetZoom, opt_direction) {
|
getConstrainedZoom(targetZoom, opt_direction) {
|
||||||
const targetRes = this.getResolutionForZoom(targetZoom);
|
const targetRes = this.getResolutionForZoom(targetZoom);
|
||||||
return this.getZoomForResolution(this.getConstrainedResolution(targetRes));
|
return this.getZoomForResolution(this.getConstrainedResolution(targetRes, opt_direction));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user