Merge branch 'main' of https://huggingface.co/spaces/IITGN-GFD/NDVI_PERG into main
Browse files
app.py
CHANGED
@@ -556,11 +556,14 @@ if "result" in st.session_state:
|
|
556 |
)
|
557 |
cols = st.columns(2)
|
558 |
dem_map, slope_map = get_dem_slope_maps(
|
559 |
-
ee.Geometry(
|
560 |
)
|
561 |
for col, param_map, title in zip(cols, [dem_map, slope_map], ["DEM Map", "Slope Map"]):
|
562 |
with col:
|
563 |
-
|
|
|
|
|
|
|
564 |
write_info(
|
565 |
f"""
|
566 |
<div style="text-align: center;">
|
|
|
556 |
)
|
557 |
cols = st.columns(2)
|
558 |
dem_map, slope_map = get_dem_slope_maps(
|
559 |
+
ee.Geometry(geometry_gdf.to_crs(4326).geometry.item().__geo_interface__)
|
560 |
)
|
561 |
for col, param_map, title in zip(cols, [dem_map, slope_map], ["DEM Map", "Slope Map"]):
|
562 |
with col:
|
563 |
+
param_map.add_gdf(
|
564 |
+
geometry_gdf,
|
565 |
+
layer_name="Geometry",
|
566 |
+
style_function=lambda x: {"color": "blue", "fillOpacity": opacity, "fillColor": "blue"},)
|
567 |
write_info(
|
568 |
f"""
|
569 |
<div style="text-align: center;">
|