I'm using Leaflet Draw to let users draw a polyline in a map in order to measure sections. First step is to use Leaflet.Draw to let users draw the line. Leaflet.Draw includes a delete and edit button. These buttons are, however not working.
I've (re)used working code from other projects to create the draw control and pass it a FeatureGroup and editable layers.
// My draw Toolbar
var drawnItems = new L.FeatureGroup()
map.addLayer(drawnItems)
var drawControl = new L.Control.Draw({
draw:{polygon: false, …Run Code Online (Sandbox Code Playgroud)