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

181
Vistas
Leaflet Ant Path animation stops on zoom out

I am trying to implement the Ant Path extension for the Leaflet javascript library but I am having difficulty fixing an issue with the animation. When the map is zoomed out, the animation is paused. I found this issue on the github page - no animation when zoom<=0 but I can't apply this fix because I am using a CDN.

Here is my jsfiddle where you can see the issue in action: https://jsfiddle.net/yqmaztrb/

const antpath = L.polyline.antPath(path, {
    "delay": 200,
    "dashArray": [
        10,
        20
    ],
    "weight": 4,
    "color": "black",
    "pulseColor": "#FFFFFF",
    "paused": false,
    "reverse": false,
    "hardwareAccelerated": true
});
antpath.addTo(map);

Any ideas how to fix it?

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