Update app.py
Browse files
app.py
CHANGED
@@ -418,7 +418,6 @@ def showing(df):
|
|
418 |
size = int(prob**2 * size_scale )
|
419 |
color = int(prob**2 * color_scale)
|
420 |
|
421 |
-
# 在Folium地图上添加标记
|
422 |
folium.CircleMarker(
|
423 |
location=[lat, lon],
|
424 |
radius=size,
|
@@ -427,10 +426,8 @@ def showing(df):
|
|
427 |
fill_color=f'#{color:02X}0000'
|
428 |
).add_to(m)
|
429 |
|
430 |
-
# 保存Folium地图为HTML文件
|
431 |
m.save("map.html")
|
432 |
|
433 |
-
# 在Streamlit中嵌入HTML文件
|
434 |
with open("map.html", "r", encoding="utf-8") as f:
|
435 |
map_html = f.read()
|
436 |
|
|
|
418 |
size = int(prob**2 * size_scale )
|
419 |
color = int(prob**2 * color_scale)
|
420 |
|
|
|
421 |
folium.CircleMarker(
|
422 |
location=[lat, lon],
|
423 |
radius=size,
|
|
|
426 |
fill_color=f'#{color:02X}0000'
|
427 |
).add_to(m)
|
428 |
|
|
|
429 |
m.save("map.html")
|
430 |
|
|
|
431 |
with open("map.html", "r", encoding="utf-8") as f:
|
432 |
map_html = f.read()
|
433 |
|