Update ol.source.Vector comments
Add a note for `getFeatures` and `getFeaturesInExtent` about the unordered array of features.
This commit is contained in:
@@ -548,7 +548,7 @@ ol.source.Vector.prototype.getFeaturesCollection = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all features on the source.
|
* Get all features on the source in random order.
|
||||||
* @return {Array.<ol.Feature>} Features.
|
* @return {Array.<ol.Feature>} Features.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
@@ -583,9 +583,9 @@ ol.source.Vector.prototype.getFeaturesAtCoordinate = function(coordinate) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all features in the provided extent. Note that this returns all features
|
* Get all features in the provided extent. Note that this returns an array of
|
||||||
* whose bounding boxes intersect the given extent (so it may include features
|
* all features intersecting the given extent in random order (so it may include
|
||||||
* whose geometries do not intersect the extent).
|
* features whose geometries do not intersect the extent).
|
||||||
*
|
*
|
||||||
* This method is not available when the source is configured with
|
* This method is not available when the source is configured with
|
||||||
* `useSpatialIndex` set to `false`.
|
* `useSpatialIndex` set to `false`.
|
||||||
|
|||||||
Reference in New Issue
Block a user