From 49a65568d801a816a65ecaf67cfade2e34084d4b Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 27 Jun 2019 15:03:17 +0200 Subject: [PATCH] Remove unused param in getState function --- src/ol/PluggableMap.js | 2 +- src/ol/View.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ol/PluggableMap.js b/src/ol/PluggableMap.js index abbc34a575..b9aada6414 100644 --- a/src/ol/PluggableMap.js +++ b/src/ol/PluggableMap.js @@ -1224,7 +1224,7 @@ class PluggableMap extends BaseObject { let frameState = null; if (size !== undefined && hasArea(size) && view && view.isDef()) { const viewHints = view.getHints(this.frameState_ ? this.frameState_.viewHints : undefined); - viewState = view.getState(this.pixelRatio_); + viewState = view.getState(); frameState = { animate: false, coordinateToPixelTransform: this.coordinateToPixelTransform_, diff --git a/src/ol/View.js b/src/ol/View.js index 620d33e324..4d500c2e6a 100644 --- a/src/ol/View.js +++ b/src/ol/View.js @@ -927,10 +927,9 @@ class View extends BaseObject { } /** - * @param {number} pixelRatio Pixel ratio for center rounding. * @return {State} View state. */ - getState(pixelRatio) { + getState() { const center = /** @type {import("./coordinate.js").Coordinate} */ (this.getCenter()); const projection = this.getProjection(); const resolution = /** @type {number} */ (this.getResolution());