This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
Handle the function of changing the color of the layer when clicking on that layer on the map #12
Unanswered
hoangdangcodecomplete
asked this question in
Q&A
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
@Tomik23 Really thank you for this help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Grzegorz Tomicki,
Currently, I'm working on a map product and the library I'm using is React Leaflet.
In my map I have polygon and polyline drawing action and I used react-leaflet-draw library for that. Currently, what I want most in my map is when I finish drawing those shapes, I can change the colors of those drawings and change the dashArray property of each shape when the user selects any shape on the map.
Here is my project: Link code
Here is the demo of my map: Video
Please help me write a small function in my code so I can change the color of the drawings when clicking on it and store it with a list of data so that I can send it back using the API.
I really thank you for that.
If you have any questions about the code or the map let me know and I will answer them for you.
Once again, thank you so much, and hope you have a nice day!
Beta Was this translation helpful? Give feedback.
All reactions