Remove unused param in getState function

This commit is contained in:
Frederic Junod
2019-06-27 15:03:17 +02:00
parent a4b76b2a00
commit 49a65568d8
2 changed files with 2 additions and 3 deletions

View File

@@ -1224,7 +1224,7 @@ class PluggableMap extends BaseObject {
let frameState = null; let frameState = null;
if (size !== undefined && hasArea(size) && view && view.isDef()) { if (size !== undefined && hasArea(size) && view && view.isDef()) {
const viewHints = view.getHints(this.frameState_ ? this.frameState_.viewHints : undefined); const viewHints = view.getHints(this.frameState_ ? this.frameState_.viewHints : undefined);
viewState = view.getState(this.pixelRatio_); viewState = view.getState();
frameState = { frameState = {
animate: false, animate: false,
coordinateToPixelTransform: this.coordinateToPixelTransform_, coordinateToPixelTransform: this.coordinateToPixelTransform_,

View File

@@ -927,10 +927,9 @@ class View extends BaseObject {
} }
/** /**
* @param {number} pixelRatio Pixel ratio for center rounding.
* @return {State} View state. * @return {State} View state.
*/ */
getState(pixelRatio) { getState() {
const center = /** @type {import("./coordinate.js").Coordinate} */ (this.getCenter()); const center = /** @type {import("./coordinate.js").Coordinate} */ (this.getCenter());
const projection = this.getProjection(); const projection = this.getProjection();
const resolution = /** @type {number} */ (this.getResolution()); const resolution = /** @type {number} */ (this.getResolution());