Add ol.source.Vector#getAllFeatures function

This commit is contained in:
Frederic Junod
2013-11-27 12:13:20 +01:00
parent 66b08644fc
commit 2f3a85a86a
2 changed files with 9 additions and 0 deletions

View File

@@ -112,6 +112,14 @@ ol.source.Vector.prototype.forEachFeatureInExtent =
};
/**
* @return {Array.<ol.Feature>} Features.
*/
ol.source.Vector.prototype.getAllFeatures = function() {
return this.rBush_.all();
};
/**
* @param {ol.Coordinate} coordinate Coordinate.
* @return {Array.<ol.Feature>} Features.