Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Blue Lines when using TimestampedGeoJson in Folium

Abierto
#1,945 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript, python

Línea de trabajo

Comienza con el archivo adjunto animated_train_bug.txt, guárdalo como HTML e inspecciona el código TimestampedGeoJson generado alrededor de la línea 118. Reproduce las líneas azules en Chrome a las 08:50:54 y 08:28:50, y luego rastrea el comportamiento de la animación y del estilo. Se considera terminado cuando las líneas no deseadas ya no aparecen y se reduce la sobrecarga de hardware reportada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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…

Lenguaje dominante
Python
Estrellas
7.4k
Forks
2.3k
Merge medio
17 h 22 min
PR fusionados (30 d)
11

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de python-visualization/folium

Todos los issues de python-visualization/folium

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.