diff --git a/src/ol/interaction/selectinteraction.js b/src/ol/interaction/selectinteraction.js index 4d5653b863..6a84a8b477 100644 --- a/src/ol/interaction/selectinteraction.js +++ b/src/ol/interaction/selectinteraction.js @@ -265,8 +265,7 @@ ol.interaction.Select.handleEvent = function(mapBrowserEvent) { * @param {ol.layer.Layer} layer Layer. */ function(feature, layer) { - var index = goog.array.indexOf(features.getArray(), feature); - if (index == -1) { + if (!ol.array.includes(features.getArray(), feature)) { if (add || toggle) { if (this.filter_(feature, layer)) { selected.push(feature);