Leaflet.DistortableImage: conflict if I use Leaflet.DistortableImage with Leaflet.Draw
Hi, I want to use Leaflet.DistortableImage tool with Leaflet.Draw. If I load first Leaflet.Draw I get an error “Polyline” is undefined…
If I load first Leaflet.DistortableImage it works but if I click on an image overlay the popup doesn’t work and I get an error at leaflet.toolbar-src.js line 300 L.Toolbar.prototype.onAdd.call(this, map); where the function “onAdd” is unidentified.
Very strange…!!!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (9 by maintainers)
@justinmanley how is my change a breaking change? Are other plugins expecting L.Toolbar to be created by Leaflet.draw?
I find this noConflict trick dirty. Who is responsible to call this noConflict method? At what point? I strongly discourage such practice as it is non obvious for the end user.