:earth_asia: FreeDraw allows the free-hand drawing of shapes on your Leaflet.js map layer – providing an intuitive and familiar UX for creating geospatial boundaries similar to Zoopla and others. Included out-of-the-box is the concaving of polygons, polygon merging and simplifying, as well as the ability to add edges and modify existing shapes.
I am using this Leaflet.FreeDraw library in a React application. This is what I have coded:
`
import leaflet-freedraw/dist/leaflet-freedraw.iife;
...
const freeDraw = new FreeDraw();
I am using this Leaflet.FreeDraw library in a React application. This is what I have coded: ` import leaflet-freedraw/dist/leaflet-freedraw.iife; ... const freeDraw = new FreeDraw();
`
When I finish drawing a freehand polygon on my map I get this error:
Can you please advise? Thank you for your time.