Spaces:
Running
Running
mattritchey
commited on
Commit
•
f56cdde
1
Parent(s):
2da403c
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def get_data(row, col, radius=8):
|
|
76 |
return df, data_max_2
|
77 |
|
78 |
|
79 |
-
def map_folium(lat, lon,files_dates_selected ):
|
80 |
|
81 |
# Create a base map
|
82 |
m = folium.Map(location=[lat, lon], zoom_start=5)
|
@@ -267,7 +267,7 @@ with col2:
|
|
267 |
with st.spinner("Loading... Please wait, it's gonna be great..."):
|
268 |
# st_folium(m, height=500)
|
269 |
# Not the first run; create a new map
|
270 |
-
m=map_folium(lat, lon,files_dates_selected )
|
271 |
m.save("map_new.html")
|
272 |
st.components.v1.html(open("map_new.html", 'r').read(), height=500, width=500)
|
273 |
|
|
|
76 |
return df, data_max_2
|
77 |
|
78 |
|
79 |
+
def map_folium(lat, lon,files_dates_selected, within_days ):
|
80 |
|
81 |
# Create a base map
|
82 |
m = folium.Map(location=[lat, lon], zoom_start=5)
|
|
|
267 |
with st.spinner("Loading... Please wait, it's gonna be great..."):
|
268 |
# st_folium(m, height=500)
|
269 |
# Not the first run; create a new map
|
270 |
+
m=map_folium(lat, lon,files_dates_selected, within_days )
|
271 |
m.save("map_new.html")
|
272 |
st.components.v1.html(open("map_new.html", 'r').read(), height=500, width=500)
|
273 |
|