From 0a312175b40d309fccfafd6f76ff6c90e20de6c3 Mon Sep 17 00:00:00 2001 From: rgvassar Date: Mon, 29 Feb 2016 11:35:45 -0800 Subject: [PATCH 1/2] OpenLayers - Added source.Vector.getFeaturesAtCoordinate method. --- openlayers/openlayers.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openlayers/openlayers.d.ts b/openlayers/openlayers.d.ts index 4ad8027f14..e7b939ad57 100644 --- a/openlayers/openlayers.d.ts +++ b/openlayers/openlayers.d.ts @@ -4180,6 +4180,12 @@ declare module ol { * Get all features on the source */ getFeatures(): ol.Feature[]; + + /** + * Get the features collection associated with this source. Will be null unless the source was configured + * with useSpatialIndex set to false, or with an ol.Collection as features. + */ + getFeaturesAtCoordinate(coordinate: ol.Coordinate): ol.Feature[]; } class VectorEvent { From 18df7ff3a9b3228b9de33d18c047f6a354eb1a37 Mon Sep 17 00:00:00 2001 From: rgvassar Date: Wed, 2 Mar 2016 09:08:46 -0800 Subject: [PATCH 2/2] Fixed incorrect documentation. --- openlayers/openlayers.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openlayers/openlayers.d.ts b/openlayers/openlayers.d.ts index e7b939ad57..f16b21fa10 100644 --- a/openlayers/openlayers.d.ts +++ b/openlayers/openlayers.d.ts @@ -4182,8 +4182,7 @@ declare module ol { getFeatures(): ol.Feature[]; /** - * Get the features collection associated with this source. Will be null unless the source was configured - * with useSpatialIndex set to false, or with an ol.Collection as features. + * Get all features whose geometry intersects the provided coordinate. */ getFeaturesAtCoordinate(coordinate: ol.Coordinate): ol.Feature[]; }