I work with Leaflet and would like to add snap function to markers etc. I can easily get the leaflet to compile but Leaflet.snap I can not.
Leaflet.snap is a js file that has leaflet and leaflet.draw as dependencies. I found the leaflet.snap here: https://github.com/makinacorpus/Leaflet.Snap/
When I make npm, leaflet.snap is installed in node.modules in the file leaflet.snap.js. node modules leaflet.snap.js
Is this the one to be imported into Angular and if so how? It contains some functions but i do not know how I can access these in an Angular class? Image of functions
For leaflet I could use import * as leaflet from 'leaflet' but this does not work for leaflet.snap. I very much hope that you can help me know as I have now spent a week not making it work :)
Thanks in advance!!!!