Spaces:
Running
Running
File size: 880 Bytes
9ad0e2d a22204c f2cf4fa 9ad0e2d 81b9b9a 9ad0e2d c54a043 9ad0e2d c54a043 9ad0e2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import streamlit as st
import leafmap.foliumap as leafmap
st.set_page_config(layout="wide")
st.sidebar.info(
"""
- Web App URL: <https://streamlit.gishub.org>
- GitHub repository: <https://github.com/giswqs/streamlit-geospatial>
"""
)
st.sidebar.title("Contact")
st.sidebar.info(
"""
Qiusheng Wu at [wetlands.io](https://wetlands.io) | [GitHub](https://github.com/giswqs) | [Twitter](https://twitter.com/giswqs) | [YouTube](https://www.youtube.com/@giswqs) | [LinkedIn](https://www.linkedin.com/in/giswqs)
"""
)
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)
|