Update ol.source.Vector comments

Add a note for `getFeatures` and `getFeaturesInExtent` about the unordered array of features.
This commit is contained in:
Frederic Junod
2016-08-24 10:05:12 +02:00
parent 389ae13cea
commit 854b20a8fd
+4 -4
View File
@@ -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`.