Wildhoney / Leaflet.FreeDraw

: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.
https://freedraw.herokuapp.com/
MIT License
544 stars 103 forks source link

Library conflicts after leaflet.freedraw upgrade #193

Open ventralnet opened 1 year ago

ventralnet commented 1 year ago

Upgrading leaflet from 2.9.0 to 2.12.0 it seems free draw is conflicting with other plugins that override L.Control through L.Control.extend

I tried to debug further but for some reason my map files for freedraw aren't working. I will update this ticket later with a work reproduction

If free draw is imported first everything seems to run smoothly

ventralnet commented 1 year ago

I finally looked into this. It is because with the current build Leaflet core is included in the dist bundles. This could mess up mixin style plugins.