Download Latest Version 2.16.0 source code.zip (280.9 kB)
Email in envelope

Get an email when there's a new version of leaflet-geoman

Home / v0.21.0
Name Modified Size InfoDownloads / Week
Parent folder
Finish Drawing on your Terms source code.tar.gz 2017-10-05 125.0 kB
Finish Drawing on your Terms source code.zip 2017-10-05 149.8 kB
README.md 2017-10-05 875 Bytes
Totals: 3 Items   275.7 kB 0

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]: [fa82ff]

Credits

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

Source: README.md, updated 2017-10-05