nextdrought / pages /3_πŸͺŸ_Split_Map.py
Peter Yang
add application files
dc5de08
raw
history blame contribute delete
432 Bytes
import streamlit as st
import leafmap.foliumap as leafmap
st.set_page_config(layout="wide")
st.title("Split-panel Map")
with st.expander("See source code"):
with st.echo():
m = leafmap.Map()
m.split_map(
left_layer='ESA WorldCover 2020 S2 FCC', right_layer='ESA WorldCover 2020'
)
m.add_legend(title='ESA Land Cover', builtin_legend='ESA_WorldCover')
m.to_streamlit(height=700)