Add ol.structs.RBush#isEmpty

This commit is contained in:
Tom Payne
2013-12-04 14:48:21 +01:00
parent a836d6924d
commit d5e5749967
2 changed files with 42 additions and 0 deletions

View File

@@ -574,6 +574,14 @@ ol.structs.RBush.prototype.insert_ = function(extent, value, level) {
};
/**
* @return {boolean} Is empty.
*/
ol.structs.RBush.prototype.isEmpty = function() {
return this.root_.children.length === 0;
};
/**
* @param {T} value Value.
*/