mapbox-gl-js version: 0.23.0
https://jsbin.com/tukobihume/edit?html,console,output
it's seems that there is an api to do that : this.off
Can you elaborate on how to remove an event listener? I did this:
map.on('drag', setPinCoords);
map.off('drag', setPinCoords);
but the second line ("off") didn't work.
@justswim I also got this problem.
@wandergis @justswim the solution is on #3484
Most helpful comment
Can you elaborate on how to remove an event listener? I did this:
map.on('drag', setPinCoords);
map.off('drag', setPinCoords);
but the second line ("off") didn't work.