map / pages /4_Choropleth.py
Yunus Serhat Bıçakçı
update
6c0b6f0
raw
history blame
1.02 kB
import streamlit as st
import leafmap.foliumap as leafmap
st.set_page_config(layout="wide")
st.sidebar.info(
"""
- Web App URL: <https://interactive-crime-map.hf.space/>
- HuggingFace repository: <https://huggingface.co/spaces/interactive-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("Choropleth")
with st.expander("See source code"):
with st.echo():
data = "https://raw.githubusercontent.com/yunusserhat/Github/main/data/boroughs_count_df_2022_dec.geojson"
m = leafmap.Map(center=[51.50, -0.1], zoom=10)
m.add_data(
data,
column = "count",
scheme='Quantiles',
cmap='Blues',
legend_title='Hate Tweets'
)
m.to_streamlit(height=700)