Use rBush.getAll and rBush.getAllInExtent

This commit is contained in:
Éric Lemoine
2013-11-27 15:54:00 +01:00
parent 1192162792
commit 2211aec553

View File

@@ -116,7 +116,7 @@ ol.source.Vector.prototype.forEachFeatureInExtent =
* @return {Array.<ol.Feature>} Features.
*/
ol.source.Vector.prototype.getAllFeatures = function() {
return this.rBush_.all();
return this.rBush_.getAll();
};
@@ -138,7 +138,7 @@ ol.source.Vector.prototype.getAllFeaturesAtCoordinate = function(coordinate) {
* @return {Array.<ol.Feature>} Features.
*/
ol.source.Vector.prototype.getAllFeaturesInExtent = function(extent) {
return this.rBush_.allInExtent(extent);
return this.rBush_.getAllInExtent(extent);
};