app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.geemap.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: <https://wetlands.io>
|
| 17 |
+
[GitHub](https://github.com/giswqs) | [Twitter](https://twitter.com/giswqs) | [YouTube](https://www.youtube.com/c/QiushengWu) | [LinkedIn](https://www.linkedin.com/in/qiushengwu)
|
| 18 |
+
"""
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
st.title("Streamlit for Geospatial Applications")
|
| 22 |
+
|
| 23 |
+
st.markdown(
|
| 24 |
+
"""
|
| 25 |
+
This multi-page web app demonstrates various interactive web apps created using [streamlit](https://streamlit.io) and open-source mapping libraries,
|
| 26 |
+
such as [leafmap](https://leafmap.org), [geemap](https://geemap.org), [pydeck](https://deckgl.readthedocs.io), and [kepler.gl](https://docs.kepler.gl/docs/keplergl-jupyter).
|
| 27 |
+
This is an open-source project and you are very welcome to contribute your comments, questions, resources, and apps as [issues](https://github.com/giswqs/streamlit-geospatial/issues) or
|
| 28 |
+
[pull requests](https://github.com/giswqs/streamlit-geospatial/pulls) to the [GitHub repository](https://github.com/giswqs/streamlit-geospatial).
|
| 29 |
+
|
| 30 |
+
"""
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
+
st.info("Click on the left sidebar menu to navigate to the different apps.")
|
| 34 |
+
|
| 35 |
+
st.subheader("Timelapse of Satellite Imagery")
|
| 36 |
+
st.markdown(
|
| 37 |
+
"""
|
| 38 |
+
The following timelapse animations were created using the Timelapse web app. Click `Timelapse` on the left sidebar menu to create your own timelapse for any location around the globe.
|
| 39 |
+
"""
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
row1_col1, row1_col2 = st.columns(2)
|
| 43 |
+
with row1_col1:
|
| 44 |
+
st.image("https://github.com/giswqs/data/raw/main/timelapse/spain.gif")
|
| 45 |
+
st.image("https://github.com/giswqs/data/raw/main/timelapse/las_vegas.gif")
|
| 46 |
+
|
| 47 |
+
with row1_col2:
|
| 48 |
+
st.image("https://github.com/giswqs/data/raw/main/timelapse/goes.gif")
|
| 49 |
+
st.image("https://github.com/giswqs/data/raw/main/timelapse/fire.gif")
|