Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

230
Views
How to add Leaflet.Snap to Angular(11) project

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!!!!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!