Merge pull request #1391 from twpayne/rbush-get-extent

Add ol.structs.RBush#getExtent
This commit is contained in:
Tom Payne
2013-12-16 04:32:59 -08:00

View File

@@ -522,6 +522,15 @@ ol.structs.RBush.prototype.getAllInExtent = function(extent) {
};
/**
* @param {ol.Extent=} opt_extent Extent.
* @return {ol.Extent} Extent.
*/
ol.structs.RBush.prototype.getExtent = function(opt_extent) {
return ol.extent.returnOrUpdate(this.root_.extent, opt_extent);
};
/**
* @param {T} value Value.
* @private