Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

229
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda