Use oli.View2DState instead of ol.View2DState
This commit is contained in:
@@ -11,7 +11,6 @@ goog.require('goog.math');
|
||||
goog.require('goog.style');
|
||||
goog.require('ol.Object');
|
||||
goog.require('ol.TransformFunction');
|
||||
goog.require('ol.View2DState');
|
||||
goog.require('ol.control.Control');
|
||||
goog.require('ol.css');
|
||||
goog.require('ol.proj');
|
||||
@@ -79,7 +78,7 @@ ol.control.ScaleLine = function(opt_options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {?ol.View2DState}
|
||||
* @type {?oli.View2DState}
|
||||
*/
|
||||
this.view2DState_ = null;
|
||||
|
||||
|
||||
@@ -1,18 +1,8 @@
|
||||
goog.provide('ol.IView2D');
|
||||
goog.provide('ol.View2DState');
|
||||
|
||||
goog.require('ol.Coordinate');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{center: ol.Coordinate,
|
||||
* projection: ol.proj.Projection,
|
||||
* resolution: number,
|
||||
* rotation: number}}
|
||||
*/
|
||||
ol.View2DState;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Interface for views.
|
||||
@@ -55,7 +45,7 @@ ol.IView2D.prototype.getRotation = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @return {ol.View2DState} View2D state.
|
||||
* @return {oli.View2DState} View2D state.
|
||||
*/
|
||||
ol.IView2D.prototype.getView2DState = function() {
|
||||
};
|
||||
|
||||
@@ -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