From 96729baa9f3684075835cbbb8ebc17eaf32fa1e2 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Tue, 11 Nov 2014 20:09:24 +0100 Subject: [PATCH] Push the feature, not the index --- src/ol/interaction/selectinteraction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/interaction/selectinteraction.js b/src/ol/interaction/selectinteraction.js index 3f690e2189..1a32311390 100644 --- a/src/ol/interaction/selectinteraction.js +++ b/src/ol/interaction/selectinteraction.js @@ -169,7 +169,7 @@ ol.interaction.Select.prototype.handleMapBrowserEvent = } } else { if (remove || toggle) { - deselected.push(index); + deselected.push(feature); } } }, undefined, this.layerFilter_);