python-visualization / python-visualization/folium
Blue Lines when using TimestampedGeoJson in Folium
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 7.4k
- Forks
- 2.3k
- Ø Merge
- 17 Std. 22 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
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?
Uploading animation_rando_blue_lines.mp4…
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit der angehängten animated_train_bug.txt, speichern Sie sie als HTML und untersuchen Sie den generierten TimestampedGeoJson-Code um Zeile 118. Reproduzieren Sie die blauen Linien in Chrome um 08:50:54 und 08:28:50 und verfolgen Sie anschließend das Animations- und Styling-Verhalten. Erledigt ist die Aufgabe, wenn die unbeabsichtigten Linien nicht mehr erscheinen und die gemeldete Hardwarebelastung reduziert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, python
- Bereich
- data-visualization, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100