Add ol.source.Vector#getAllFeatures function
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user