Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

234
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda