UjjwalKGupta commited on
Commit
fffb3c0
1 Parent(s): 4990c43

Fix DEM for Inner Polygon

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -552,11 +552,14 @@ if "result" in st.session_state:
552
  )
553
  cols = st.columns(2)
554
  dem_map, slope_map = get_dem_slope_maps(
555
- ee.Geometry(outer_geometry_gdf.to_crs(4326).geometry.item().__geo_interface__)
556
  )
557
  for col, param_map, title in zip(cols, [dem_map, slope_map], ["DEM Map", "Slope Map"]):
558
  with col:
559
- add_geometry_to_maps([param_map])
 
 
 
560
  write_info(
561
  f"""
562
  <div style="text-align: center;">
 
552
  )
553
  cols = st.columns(2)
554
  dem_map, slope_map = get_dem_slope_maps(
555
+ ee.Geometry(geometry_gdf.to_crs(4326).geometry.item().__geo_interface__)
556
  )
557
  for col, param_map, title in zip(cols, [dem_map, slope_map], ["DEM Map", "Slope Map"]):
558
  with col:
559
+ param_map.add_gdf(
560
+ geometry_gdf,
561
+ layer_name="Geometry",
562
+ style_function=lambda x: {"color": "blue", "fillOpacity": opacity, "fillColor": "blue"},)
563
  write_info(
564
  f"""
565
  <div style="text-align: center;">