streamlit-geospatial / apps /plotly_maps.py
giswqs's picture
Added plotly maps
1499af1
raw
history blame
426 Bytes
import streamlit as st
import leafmap.plotlymap as leafmap
def app():
st.title("Plotly Maps")
m = leafmap.Map(basemap="street", height=650)
m.add_mapbox_layer(style="streets")
basemaps = list(leafmap.plotly_basemaps.keys())
basemap = st.selectbox(
"Select a basemap", basemaps, basemaps.index("Stamen.Terrain")
)
m.add_basemap(basemap)
st.plotly_chart(m, use_container_width=True)