UjjwalKGupta commited on
Commit
fb9780e
1 Parent(s): 939374c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -184,7 +184,7 @@ def add_geometry_to_maps(map_list, opacity=0.0):
184
 
185
  def get_dem_slope_maps(buffer_ee_geometry):
186
  # Create the map for DEM
187
- dem_map = geemap.Map()
188
  dem_map.add_tile_layer(
189
  wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri"
190
  )
@@ -220,7 +220,7 @@ def get_dem_slope_maps(buffer_ee_geometry):
220
  position='bottomright')
221
 
222
  # Create the map for Slope
223
- slope_map = geemap.Map()
224
  slope_map.add_tile_layer(
225
  wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri"
226
  )
@@ -568,7 +568,8 @@ if "result" in st.session_state:
568
  param_map.add_gdf(
569
  geometry_gdf,
570
  layer_name="Geometry",
571
- style = {"color": "#0000FF", "fillOpacity": 0.0, "fillColor": "#0000FF"},
 
572
  )
573
  write_info(f"""<div style="text-align: center;">{title}</div>""")
574
  param_map.addLayerControl()
 
184
 
185
  def get_dem_slope_maps(buffer_ee_geometry):
186
  # Create the map for DEM
187
+ dem_map = leaf_folium.Map()
188
  dem_map.add_tile_layer(
189
  wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri"
190
  )
 
220
  position='bottomright')
221
 
222
  # Create the map for Slope
223
+ slope_map = leaf_folium.Map()
224
  slope_map.add_tile_layer(
225
  wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri"
226
  )
 
568
  param_map.add_gdf(
569
  geometry_gdf,
570
  layer_name="Geometry",
571
+ style_function=lambda x: {"color": "blue", "fillOpacity": 0.0, "fillColor": "blue"},
572
+ #style = {"color": "#0000FF", "fillOpacity": 0.0, "fillColor": "#0000FF"},
573
  )
574
  write_info(f"""<div style="text-align: center;">{title}</div>""")
575
  param_map.addLayerControl()