From 0a312175b40d309fccfafd6f76ff6c90e20de6c3 Mon Sep 17 00:00:00 2001 From: rgvassar Date: Mon, 29 Feb 2016 11:35:45 -0800 Subject: [PATCH] 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 4ad8027f1..e7b939ad5 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 {