How to stop function map.on 'click' add new marker on the map? #11
Replies: 2 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi my friend, You can see I have useEffect and check every time that variable changes however preventing click action are not possible. |
Beta Was this translation helpful? Give feedback.
-
Hi, my friend!
I have implemented the code 1 function similar to your add move and delete marker function.
My difference is that I customize a button control and when I click on that control button, I will allow adding a new marker, when I click cancel, it will stop the action of adding a marker. However, I cannot stop the marker click action on the map.
Do you have any solution to my problem?
If yes, please help me, thank you very much.
Video record about my issues: Link demo
Here is my code: Link code
Beta Was this translation helpful? Give feedback.
All reactions