Reputation: 353
Is it possible to disable interaction styling completely? I've tried to set it to null, but it doesn't work. And seems like interaction style function is not used when style is assigned to features, but not layer?
this.hoverInteraction = new ol.interaction.Select ({
condition : ol.events.condition.pointerMove,
layers : this.layers,
style : function () { // is not called?
console.log ('check');
},
multi : false
});
Upvotes: 0
Views: 1407
Reputation: 512
Should be able to keep styles from showing if you just pass an empty array:
new ol.interaction.Select({
condition: ol.events.condition.pointerMove,
style: []
});
I have a feeling your issue might be the layers : this.layers
part, this
is probably not referring to what you want here.
Upvotes: 1