Use oli.View2DState instead of ol.View2DState
This commit is contained in:
+2
-2
@@ -368,12 +368,12 @@ ol.View2D.prototype.getView2DState = function() {
|
||||
var projection = this.getProjection();
|
||||
var resolution = /** @type {number} */ (this.getResolution());
|
||||
var rotation = this.getRotation();
|
||||
return {
|
||||
return /** @type {oli.View2DState} */ ({
|
||||
center: center.slice(),
|
||||
projection: goog.isDef(projection) ? projection : null,
|
||||
resolution: resolution,
|
||||
rotation: goog.isDef(rotation) ? rotation : 0
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user