Fix select interaction regression caused by #4391
This commit is contained in:
1 parent
17e69f9326
commit
a8cd6b735f
2 files changed
+2
-2
No files matched your search
@@ -283,7 +283,7 @@ ol.interaction.Select.handleEvent = function(mapBrowserEvent) {
|
||||
* @param {ol.layer.Layer} layer Layer.
|
||||
*/
|
||||
function(feature, layer) {
|
||||
if (layer && this.filter_(feature, layer)) {
|
||||
if (!layer || this.filter_(feature, layer)) {
|
||||
selected.push(feature);
|
||||
this.addFeatureLayerAssociation_(feature, layer);
|
||||
return !this.multi_;
|
||||
|
||||
Reference in new issue
Block a user