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://huggingface.co/spaces/yunusserhat/Crime-Map> | |
- HuggingFace repository: <https://huggingface.co/spaces/yunusserhat/Crime-Map/tree/main> | |
""" | |
) | |
st.sidebar.title("Contact") | |
st.sidebar.info( | |
""" | |
Yunus Serhat Bıçakçı at [yunusserhat.com](https://yunusserhat.com) | [GitHub](https://github.com/yunusserhat) | [Twitter](https://twitter.com/yunusserhat) | [LinkedIn](https://www.linkedin.com/in/yunusserhat) | |
""" | |
) | |
st.title("Heatmap") | |
with st.expander("See source code"): | |
with st.echo(): | |
tweets = "https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv" | |
m = leafmap.Map(center=[51.50, -0.1], zoom=10, tiles="stamentoner") | |
m.add_heatmap( | |
tweets, | |
latitude="latitude", | |
longitude="longitude", | |
value="pop_max", | |
name="Heat map", | |
radius=20, | |
) | |
m.to_streamlit(height=700) | |