Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| import leafmap.foliumap as leafmap | |
| st.set_page_config(layout="wide") | |
| st.sidebar.info( | |
| """ | |
| - Web App URL: <https://streamlit.gishub.org> | |
| - GitHub repository: <https://github.com/giswqs/streamlit-geospatial> | |
| """ | |
| ) | |
| st.sidebar.title("Contact") | |
| st.sidebar.info( | |
| """ | |
| Qiusheng Wu at [wetlands.io](https://wetlands.io) | [GitHub](https://github.com/giswqs) | [Twitter](https://twitter.com/giswqs) | [YouTube](https://www.youtube.com/c/QiushengWu) | [LinkedIn](https://www.linkedin.com/in/qiushengwu) | |
| """ | |
| ) | |
| st.title("Heatmap") | |
| with st.expander("See source code"): | |
| with st.echo(): | |
| filepath = "https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv" | |
| m = leafmap.Map(center=[40, -100], zoom=4, tiles="stamentoner") | |
| m.add_heatmap( | |
| filepath, | |
| latitude="latitude", | |
| longitude="longitude", | |
| value="pop_max", | |
| name="Heat map", | |
| radius=20, | |
| ) | |
| m.to_streamlit(height=700) | |