How can I remove the \"clear all\" action from the delete button in the leaflet-draw edit toolbar?
I know you can remove the whole delete button but still need to re
i use this code and work for me. change remove to true==>> remove: true
:
var drawControl = new L.Control.Draw({
position: 'topright',
draw: {
polyline: false,
polygon:false,
circle: false, // Turns off this drawing tool
rectangle: true,
marker: true
},
edit: {
featureGroup: drawnItems,
remove: true
}
});