UjjwalKGupta
commited on
Commit
•
f315934
1
Parent(s):
a36eb8d
Add DEM and Slope Map with sections
Browse files
app.py
CHANGED
@@ -483,7 +483,12 @@ if "result" in st.session_state:
|
|
483 |
st.write("<h3><div style='text-align: center;'>DEM and Slope from SRTM at 30m resolution</div></h3>", unsafe_allow_html=True)
|
484 |
cols = st.columns(2)
|
485 |
dem_map, slope_map = get_dem_slope_maps(ee.Geometry(buffer_geometry_gdf.to_crs(4326).geometry.item().__geo_interface__))
|
486 |
-
for col, param_map in zip(cols, [dem_map, slope_map]):
|
487 |
with col:
|
488 |
add_geometry_to_maps([param_map])
|
|
|
|
|
|
|
|
|
|
|
489 |
param_map.to_streamlit()
|
|
|
483 |
st.write("<h3><div style='text-align: center;'>DEM and Slope from SRTM at 30m resolution</div></h3>", unsafe_allow_html=True)
|
484 |
cols = st.columns(2)
|
485 |
dem_map, slope_map = get_dem_slope_maps(ee.Geometry(buffer_geometry_gdf.to_crs(4326).geometry.item().__geo_interface__))
|
486 |
+
for col, param_map, title in zip(cols, [dem_map, slope_map], ["DEM Map", "Slope Map"]):
|
487 |
with col:
|
488 |
add_geometry_to_maps([param_map])
|
489 |
+
write_info(f"""
|
490 |
+
<div style="text-align: center;">
|
491 |
+
<h4>{title}</h4>
|
492 |
+
</div>
|
493 |
+
""")
|
494 |
param_map.to_streamlit()
|