Zeel commited on
Commit
d9b225b
2 Parent(s): 0812914 fffb3c0

Merge branch 'main' of https://huggingface.co/spaces/IITGN-GFD/NDVI_PERG into main

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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(outer_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
- add_geometry_to_maps([param_map])
 
 
 
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;">