A Leaflet plugin for free-hand drawing, editing, and merging of polygons on map layers. Version 2.8.8 is the current stable release; it is a fork based on ale-leaflet (itself a fork of Leaflet 1.x). It provides an intuitive UX for creating geospatial boundaries with features like polygon concave hull, simplification, edge addition, and shape modification. Compared to alternatives like L.Pather (polylines), FreeDraw focuses on polygon workflows. It depends on jakodev-test-lf (Leaflet fork) as a peer dependency and ships as ESM primarily. Release cadence is irregular; no recent updates since 2021.
npm install jakodev-test-lfdrawNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: import the Leaflet fork and FreeDraw, initialize map, add FreeDraw layer, listen for marker events, and set mode.
Replace 'leaflet' with 'jakodev-test-lf' in your package.json and imports.
Use 'jakodev-test-lfdraw' instead of 'leaflet-freedraw'.
Change 'require' calls to ES module imports, or use dynamic import: const FreeDraw = (await import('jakodev-test-lfdraw')).default;Attach the event listener directly to the FreeDraw instance: freeDraw.on('markers', ...);Ensure target browsers support SVG, or use a polyfill.
Install and import from 'jakodev-test-lf' instead of 'leaflet'.
Use 'jakodev-test-lf' as the Leaflet fork dependency.
Change import to: import FreeDraw from 'jakodev-test-lfdraw';