From 854b20a8fdd43081f7be6be1b4ad1696f56dc1ef Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 24 Aug 2016 10:05:12 +0200 Subject: [PATCH] Update ol.source.Vector comments Add a note for `getFeatures` and `getFeaturesInExtent` about the unordered array of features. --- src/ol/source/vector.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ol/source/vector.js b/src/ol/source/vector.js index e82de85fc8..d74548d8b8 100644 --- a/src/ol/source/vector.js +++ b/src/ol/source/vector.js @@ -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.} Features. * @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 - * whose bounding boxes intersect the given extent (so it may include features - * whose geometries do not intersect the extent). + * Get all features in the provided extent. Note that this returns an array of + * all features intersecting the given extent in random order (so it may include + * features whose geometries do not intersect the extent). * * This method is not available when the source is configured with * `useSpatialIndex` set to `false`.