Advertisement
safwan092

Untitled

Nov 21st, 2023
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import streamlit as st
  2. import folium
  3. from streamlit_folium import folium_static
  4.  
  5. def main():
  6. st.title("Solar Map :mostly_sunny:")
  7. # Initialize the map
  8. m = folium.Map(location=[21.502771, 39.247194], zoom_start=18)
  9. # Add a click event handler to the map
  10. m.add_child(folium.ClickForMarker("<b>Lat: </b> ${lat}<br/><b>Lon: </b> ${lng}<br><b>Altitude:</b> 10.00 m"))
  11. # Display the map using folium_static
  12. folium_static(m)
  13.  
  14. if __name__ == "__main__":
  15. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement