Add ol.geom.GeometryCollection#isEmpty
This commit is contained in:
1 parent
8003c4ba5a
commit
5729ebbd79
1 file changed
+8
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user