How to remove interaction in openlayers?

时间:2018-06-19 11:09:55

标签: reactjs openlayers

Heres my gist. On componentWillUnmount, I try to remove an interaction, but it doesnt remove https://gist.github.com/columnistdc/b5a29b8996d1152f57c8dc1cd6caaf61

1 个答案:

答案 0 :(得分:1)

Gist is deleted. If you cannot remove an interaction through map.removeInteraction(interaction), you can try map.getInteractions().pop() Very strange decision