Alex.K
Alex.K

Reputation: 71

How to remove interaction in openlayers?

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

Upvotes: 2

Views: 9354

Answers (1)

Alex.K
Alex.K

Reputation: 71

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

Upvotes: 4

Related Questions