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

220
Vistas
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 Respuestas
Responde la pregunta

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