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

178
Visualizações
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 à 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