Add ol.Camera.isFullyDefined

This commit is contained in:
Tom Payne
2012-07-14 17:46:50 +02:00
parent c0aa3b77fe
commit dbb26dc68d

View File

@@ -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.
*/