import streamlit as st
import leafmap.foliumap as leafmap
#st.set_page_config(layout="wide")
st.title("USA Population - Heatmap")
filepath = "https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv"
#m = leafmap.Map(center=[45, -107], zoom=8, tiles="satellite")
#filepath = "./data/modis.csv"
m = leafmap.Map(center=[40, -107], zoom=2)
m.add_heatmap(
filepath,
latitude="latitude",
longitude="longitude",
value="pop_max",
#latitude="LATITUDE",
#longitude="LONGITUDE",
#value="CONFIDENCE",
name="Heat map",
radius=15,
)
m.to_streamlit(height=400)