Add ol.structs.RBush#getExtent
This commit is contained in:
@@ -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.
|
* @param {T} value Value.
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user