Move olx.ViewState to ol/View

This commit is contained in:
Frederic Junod
2018-03-23 09:14:11 +01:00
parent 1963e6088e
commit 29b37b179c
6 changed files with 17 additions and 53 deletions

View File

@@ -183,7 +183,7 @@ const RasterSource = function(options) {
tileQueue: this.tileQueue_,
time: Date.now(),
usedTiles: {},
viewState: /** @type {olx.ViewState} */ ({
viewState: /** @type {module:ol/View~State} */ ({
rotation: 0
}),
viewHints: [],
@@ -232,7 +232,7 @@ RasterSource.prototype.updateFrameState_ = function(extent, resolution, projecti
const frameState = /** @type {module:ol/PluggableMap~FrameState} */ (assign({}, this.frameState_));
frameState.viewState = /** @type {olx.ViewState} */ (assign({}, frameState.viewState));
frameState.viewState = /** @type {module:ol/View~State} */ (assign({}, frameState.viewState));
const center = getCenter(extent);