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

223
Visualizações
Using Leaflet.PolylineMeasure on Angular

I'm trying to use this plugin called Leaflet.PolylineMeasure and integrate it into my application. The only issue is that the plugin is in JavaScript while my application is in Angular..

I saw that you can npm install the library: https://www.npmjs.com/package/leaflet.polylinemeasure but I'm not sure how to use it after that. I tried doing L.control.polylineMeasure, but it says Property 'polylineMeasure' does not exist on type 'typeof control'. Most likely because L doesn't have the polylineMeasure function in there.

I am using ngx-leaflet to run leaflet on my application. How can I get it to work on my angular app?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Luckily you have type definitions available for this Leaflet plugin: https://www.npmjs.com/package/@types/leaflet.polylinemeasure

Therefore you just install them in your TypeScript / Angular project: npm install --save-dev @types/leaflet.polylinemeasure

Make sure you import the plugin alongside Leaflet, and the TypeScript compiler should now be happy.

about 4 years ago · Juan Pablo Isaza Relatório
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