Can i edit leaflet draw panel by adding some new buttons?
For example, i want two buttons for drawing polylines, three for markers and etc.
leafletleaflet-draw
Can i edit leaflet draw panel by adding some new buttons?
For example, i want two buttons for drawing polylines, three for markers and etc.
Best Answer
I don't see any api methods that allow multiple buttons for the same feature type on one draw control. If you need multiple buttons on the same control, then I expect you'll have to modify the source code.
A shortcut would be to add two draw controls to the map. The following works if you paste it into the console of the example