5👍
✅
You’re adding the drawn items to map
but they should be added to the layer pointed by edit.featureGroup
if you want to edit them, i.e drawnItems
:
map.on(L.Draw.Event.CREATED, function (e) {
var layer = e.layer;
drawnItems.addLayer(layer);
});
Here’s a demo https://jsfiddle.net/4g5u071r/
Source:stackexchange.com