Problem with toggle button #588
Answered
by
moonwave99
MateLoncar
asked this question in
Data Analytics
-
First I made a new marker for each click, but now I decided to make a button that activates/deactivates the creation of markers per click,but the button doesn't work for me even though I think I added everything correctly.https://github.com/MateLoncar/capstone-project/commits/US5 |
Beta Was this translation helpful? Give feedback.
Answered by
moonwave99
May 2, 2023
Replies: 1 comment
-
The solution is to pass the Also the event propagation must be stopped in the PopUp in order to prevent the creation of a new marker when removing an old one. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
onemanwenttomow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The solution is to pass the
isAddingMarker
state to the Map element so it can decide whether the markers should be appended or not.Also the event propagation must be stopped in the PopUp in order to prevent the creation of a new marker when removing an old one.