Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.96k stars 992 forks source link

Programmatically set drawing mode / external toolbar #1065

Open maartenbreddels opened 9 months ago

maartenbreddels commented 9 months ago

The drawing mode can be controlled via the toolbar, however, it's not clear if and how to drawing mode can be controlled without using the built-in toolbar, but our own. This means we need to be able to set it programmatically, is this possible with the current API?