Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
import streamlit as st
|
3 |
import folium
|
4 |
from folium import Marker
|
5 |
-
from folium import folium_static
|
6 |
|
7 |
# Top 10 locations for viewing Northern Lights in Iceland
|
8 |
northern_lights_locations = [
|
@@ -55,6 +54,16 @@ with col2:
|
|
55 |
# Display Folium map
|
56 |
st.write("Top 10 locations for viewing the Northern Lights in Iceland:")
|
57 |
folium_map = display_map(northern_lights_locations)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
folium_static(folium_map)
|
59 |
|
60 |
# Cite references
|
|
|
2 |
import streamlit as st
|
3 |
import folium
|
4 |
from folium import Marker
|
|
|
5 |
|
6 |
# Top 10 locations for viewing Northern Lights in Iceland
|
7 |
northern_lights_locations = [
|
|
|
54 |
# Display Folium map
|
55 |
st.write("Top 10 locations for viewing the Northern Lights in Iceland:")
|
56 |
folium_map = display_map(northern_lights_locations)
|
57 |
+
from streamlit_folium import st_folium
|
58 |
+
|
59 |
+
# center on Liberty Bell, add marker
|
60 |
+
m = folium.Map(location=[39.949610, -75.150282], zoom_start=16)
|
61 |
+
folium.Marker(
|
62 |
+
[39.949610, -75.150282], popup="Liberty Bell", tooltip="Liberty Bell"
|
63 |
+
).add_to(m)
|
64 |
+
|
65 |
+
# call to render Folium map in Streamlit
|
66 |
+
st_data = st_folium(m, width=725)
|
67 |
folium_static(folium_map)
|
68 |
|
69 |
# Cite references
|