Add ol.Camera.isFullyDefined
This commit is contained in:
@@ -53,6 +53,15 @@ ol.Camera.prototype.getRotation = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @return {boolean} Is fully defined.
|
||||
*/
|
||||
ol.Camera.prototype.isFullyDefined = function() {
|
||||
return goog.isDef(this.getPosition()) && goog.isDef(this.getResolution()) &&
|
||||
goog.isDef(this.getRotation());
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {goog.math.Coordinate} position Position.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user