prevent a click on a button while another animation is running
Hello everyone,
I have created a map with a "outbound" button and a "return" button.
When I click on the "outbound trip" button, it launches an animation on the map that I have integrated in a symbol outside the map of a boat going from point A to point B.
My problem is that I can't figure out how to prevent clicking on the return path while the outbound path animation is active, because the return animation should not be triggered until the outbound path is completed, but the two should be separate.
Can you help me? I'm a beginner in code and I've been stuck for more than a week.
Thanks in advance
Translated with www.DeepL.com/Translator (free version)
