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

@@ -1,5 +1,6 @@
@exportClass ol.source.Vector ol.source.VectorOptions
@exportProperty ol.source.Vector.prototype.addFeature
@exportProperty ol.source.Vector.prototype.forEachFeature
@exportProperty ol.source.Vector.prototype.getAllFeatures
@exportProperty ol.source.Vector.prototype.getAllFeaturesAtCoordinate
@exportProperty ol.source.Vector.prototype.removeFeature

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.