Minor Changes
- Added
finishOn
option to pass events on which to finish drawing: #233
map.pm.enableDraw('Poly', { finishOn: 'dblclick' });
- Added possibility to pass options to the toolbar drawing buttons too. Fixes #117
// make markers not snappable during marker draw
map.pm.enableDraw('Marker', { snappable: false });
map.pm.disableDraw('Marker');
// let polygons finish their shape on double click
map.pm.enableDraw('Poly', { finishOn: 'dblclick' });
map.pm.disableDraw('Poly');
Patches
Credits
Huge thanks to @themre for his PR which was the base for #233