github geoman-io/leaflet-geoman v0.21.0
Finish Drawing on your Terms

Minor Changes

  • Added finishOn option to pass events on which to finish drawing: #233
    js map.pm.enableDraw('Poly', { finishOn: 'dblclick' });
    finishon event2
    - Added possibility to pass options to the toolbar drawing buttons too. Fixes #117
    js // 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

  • CenterMarker is not draggable anymore during Circle Draw. Fixes #230:
    fa82ff04b5beb0c2545c8fe29010d4fb620c8ba4

Credits

Huge thanks to @themre for his PR which was the base for #233

latest releases: 2.11.2, 2.11.1, 2.11.0...
3 years ago