Add ol.geom.GeometryCollection#isEmpty

This commit is contained in:
Tom Payne
2013-12-15 23:04:42 +01:00
parent 8003c4ba5a
commit 5729ebbd79

View File

@@ -173,6 +173,14 @@ ol.geom.GeometryCollection.prototype.getType = function() {
};
/**
* @return {boolean} Is empty.
*/
ol.geom.GeometryCollection.prototype.isEmpty = function() {
return goog.array.isEmpty(this.geometries_);
};
/**
* @param {Array.<ol.geom.Geometry>} geometries Geometries.
*/