From 975e0c0576ec4cdc04204819f2726a40b1d6c76a Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sun, 15 Dec 2013 23:11:07 +0100 Subject: [PATCH] Add ol.source.Vector#getExtent --- src/ol/source/vectorsource.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ol/source/vectorsource.js b/src/ol/source/vectorsource.js index 776dd2f7b2..d002278ebb 100644 --- a/src/ol/source/vectorsource.js +++ b/src/ol/source/vectorsource.js @@ -212,6 +212,14 @@ ol.source.Vector.prototype.getClosestFeatureToCoordinate = }; +/** + * @return {ol.Extent} Extent. + */ +ol.source.Vector.prototype.getExtent = function() { + return this.rBush_.getExtent(); +}; + + /** * @param {goog.events.Event} event Event. * @private