Closed franciscoeymardneto closed 2 years ago
You need to add the layers in the default leaflet way or over geojson.
When you listen on layer.on('pm:edit',(e)=>{console.log(e)})
you can get the new latlngs
When you listen on layer.on('pm:remove',(e)=>{console.log(e)})
you can catch the removed layer
For example, I have polygon and circle data in my database and I must add this data to my map. In addition, you can edit and delete either on the map or on the database.