Animated markers missing when using pre1970 dates in TimestampedGeoJson
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript, python
研究方向
從 folium.plugins.TimestampedGeoJson 進入點開始,將為負時間戳產生的 Leaflet.TimeDimension 設定與提供的 1970 年之後範例進行比較。重現該範例,追蹤 1970 年之前的值如何傳遞到動畫中,並驗證兩個時間戳範圍都會顯示動畫標記。
由索引模型根據 Issue 內容生成。
描述
Animated markers missing when using pre1970 dates in TimestampedGeoJson. I understand this functionality from Leaflet.TimeDimension, but had thought this issue was fixed there (Merged pull request: https://github.com/socib/Leaflet.TimeDimension/pull/91).
Please add a code sample or a nbviewer link, copy-pastable if possible
import folium
from folium.plugins import TimestampedGeoJson
# Post-1970 timestamps: 1970-01-02, 1970-01-03, 1970-01-04
milliseconds_per_day = 1000 * 60 * 60 * 24
post_1970_timestamps=[1*milliseconds_per_day, 2*milliseconds_per_day, 3*milliseconds_per_day]
# Pre-1970 timestamps: 1969-12-29, 1969-12-30, 1969-12-31
pre_1970_timestamps=[0-time for time in post_1970_timestamps]
# Ensure pre_1970_timestamps are in ascending order:
pre_1970_timestamps.reverse()
m = folium.Map(location=[0,0],zoom_start=2)
ts=TimestampedGeoJson({
'type': 'FeatureCollection',
'features': [
{
'type': 'Feature',
'geometry': {
'type': 'LineString',
'coordinates': [[-70,-25],[-70,35],[70,35]],
},
'properties': {
# Dates shown in time slider controls, but no markers displayed on map
# Contrast behaviour when times read from post_1970_timestamps list:
# - animated markers shown on map as per example
'times': pre_1970_timestamps
#'times': post_1970_timestamps
}
}
]
})
ts.add_to(m)
m
Problem description
No markers shown on maps using TimestampedGeoJson with dates pre 1970 (as held in pre_1970_timestamps list)
Expected Output
Animated markers as per the TimestampedGeoJson with post_1970_timestamps
Output of folium.__version__
0.10.0
- 主要語言
- Python
- 星號
- 7.4k
- 分支
- 2.3k
- 平均合併
- 2 天 4 小時
- 30 天內合併 PR
- 10
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python-visualization/folium 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
python-visualization/folium#2293 · 2 則留言 ·
維護者通常 1 天內回覆
-
Make it more obvious how to add text可能已有人在做 @mosessamofficial-sys 於 228 天前認領。 未關閉documentation
難度 2/5 1-3 小時 新手友好度 68/100
python-visualization/folium#2092 · 5 則留言 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
python-visualization/folium#2259 ·
維護者通常 1 天內回覆
-
Map output from OSM returns blocked tiles, due to defective request or not following referer-policy未關閉
難度 3/5 1-2 天 新手友好度 55/100
python-visualization/folium#2236 · 8 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 10/100
python-visualization/folium#2219 · 2 則留言 ·
維護者通常 1 天內回覆
查看 python-visualization/folium 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 83/100
PedestrianDynamics/pyFDS-Evac#766 ·
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 91/100
alchaincyf/nuwa-skill#86 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 2 天內回覆
-
Docs Needs Triage
難度 1/5 1 小時以內 新手友好度 88/100
pandas-dev/pandas#71055 ·
維護者通常 1 天內回覆
-
[Bug]: graphify reads files that git's global ignore file hides可能已有人在做 @smngvlkz 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
Graphify-Labs/graphify#4335 · 1 則留言 ·
維護者通常 1 天內回覆