Spaces:
Sleeping
Sleeping
onfarmview
commited on
Commit
·
01f7b5f
1
Parent(s):
2ea270a
first time
Browse files- pages/3_🪟_Split_Map.py +30 -0
pages/3_🪟_Split_Map.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import leafmap.foliumap as leafmap
|
| 3 |
+
|
| 4 |
+
st.set_page_config(layout="wide")
|
| 5 |
+
|
| 6 |
+
# st.sidebar.info(
|
| 7 |
+
# """
|
| 8 |
+
# - Web App URL: <https://streamlit.gishub.org>
|
| 9 |
+
# - GitHub repository: <https://github.com/giswqs/streamlit-geospatial>
|
| 10 |
+
# """
|
| 11 |
+
# )
|
| 12 |
+
|
| 13 |
+
# st.sidebar.title("Contact")
|
| 14 |
+
# st.sidebar.info(
|
| 15 |
+
# """
|
| 16 |
+
# Qiusheng Wu at [wetlands.io](https://wetlands.io) | [GitHub](https://github.com/giswqs) | [Twitter](https://twitter.com/giswqs) | [YouTube](https://www.youtube.com/c/QiushengWu) | [LinkedIn](https://www.linkedin.com/in/qiushengwu)
|
| 17 |
+
# """
|
| 18 |
+
# )
|
| 19 |
+
|
| 20 |
+
st.title("Split-panel Map")
|
| 21 |
+
|
| 22 |
+
# with st.expander("See source code"):
|
| 23 |
+
# with st.echo():
|
| 24 |
+
m = leafmap.Map()
|
| 25 |
+
m.split_map(
|
| 26 |
+
left_layer='ESA WorldCover 2020 S2 FCC', right_layer='ESA WorldCover 2020'
|
| 27 |
+
)
|
| 28 |
+
m.add_legend(title='ESA Land Cover', builtin_legend='ESA_WorldCover')
|
| 29 |
+
|
| 30 |
+
m.to_streamlit(height=700)
|