T
T
Tenebrius2017-12-23 17:10:04
leaflet
Tenebrius, 2017-12-23 17:10:04

How to get layer, marker and polygon data from a leaflet map?

Good afternoon.
Two questions on leaflet.
I have a JSON object with markers and polygons grouped by layers that I display on a map. I also use the "Leaflet.PM" plugin, which allows me to edit existing markers and polygons and add new ones. The question is how then to get the edited data in order to save it.
The second question is how to get the clicked marker? On click, I suppose to edit the text and the marker icon.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question