Add ol.source.Vector#getAllFeatures function
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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