I wanted to add more button along with this Cancel button, When user click on marker from leaflet toolbar. Please suggest me the solution or any plugin which helps to achieve this requirement.
Asked
Active
Viewed 1,388 times
1 Answers
1
You can use the Plugin Leaflet-Geoman
function onclick(e){
console.log('CLICK')
}
// add a new custom control
map.pm.Toolbar.createCustomControl({
name: 'CustomButton',
block: 'draw',
className: 'control-icon leaflet-pm-icon-marker',
actions: [{
text: 'Cancel',
onClick: onclick
}]
})
Go to custom button doc and then scroll to Adding New/Custom Controls

Falke Design
- 10,635
- 3
- 15
- 30
-
Thanks. Appreciate your help. – vinita jain Sep 29 '20 at 20:48