Use oli.View2DState instead of ol.View2DState

This commit is contained in:
Tom Payne
2014-03-10 17:19:29 +01:00
parent 0a3ef09c30
commit 0335d4aa6a
3 changed files with 4 additions and 15 deletions
+2 -2
View File
@@ -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
};
});
};