Add ol.structs.RBush#getExtent

This commit is contained in:
Tom Payne
2013-12-15 22:33:14 +01:00
parent 5729ebbd79
commit 47e2dd53ce

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