And it's pretty simple! Its in the Docs API : unByKey , but a very inconsistent name for the off function.
So, to remove the event listener a :
map.unByKey(a);
Remove a listener, but turn on b .
Note. This will work through any object in Open Layers 3 that emits an event. like layers, interactions, etc.
Shaunak
source share