Merge pull request #1331 from twpayne/rbush-is-empty
Add ol.structs.RBush#isEmpty
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user