Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Blue Lines when using TimestampedGeoJson in Folium

Aberta
#1,945 2 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
30/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
javascript, python

Direção de pesquisa

Comece com o arquivo anexado animated_train_bug.txt, salve-o como HTML e inspecione o código TimestampedGeoJson gerado por volta da linha 118. Reproduza as linhas azuis no Chrome às 08:50:54 e 08:28:50 e, em seguida, rastreie o comportamento da animação e da estilização. Está concluído quando as linhas não intencionais não aparecerem mais e a sobrecarga de hardware relatada for reduzida.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug

Describtion
During the animation with the TimestampedGeoJson plugin in Folium, blue lines briefly appear along the route of the objects, causing undesired strain on the hardware.

To Reproduce
You can use the txt file and safe it as HTML and open it in your browser. At the timespamps 08:50:54 and 08:28:50 you can see the blue lines.

Expected behavior
The blue lines should not appear during the animation and the hardware should not be strained.

Environment:

  • Browser: chrome
  • Python version: 3.10.13
  • folium version: 0.15.1

Additional context
To hide the lines, I replaced the following code in the HTML file (line 118):

style: function (feature) {
    return feature.properties.style;
}

with the code:

style: function (feature) {
    return {
        opacity: 0.0
    };
}

However, this does not reduce the hardware strain.

You can find an example Folium map animated_train_bug.txt (you can safe it as html and open it with chrome) and a video illustrating the issue attached (timestamp bug: 08:50:54 and 08:28:50).

Can you help making a fix for this issue please?

animated_train_bug.txt

Uploading animation_rando_blue_lines.mp4…

Linguagem predominante
Python
Estrelas
7.4k
Forks
2.3k
Merge médio
17h 22min
PRs com merge (30d)
11

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de python-visualization/folium

Todas as issues de python-visualization/folium

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.