UjjwalKGupta commited on
Commit
162af94
1 Parent(s): 33c4347

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -132,7 +132,7 @@ def add_geometry_to_maps(map_list, opacity=0.0):
132
 
133
  def get_dem_slope_maps(buffer_ee_geometry):
134
  # Create the map for DEM
135
- dem_map = gee_folium.Map(controls={'scale':'bottom-left'})
136
  dem_map.add_tile_layer(
137
  wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri"
138
  )
@@ -173,7 +173,7 @@ def get_dem_slope_maps(buffer_ee_geometry):
173
  position='bottomright')
174
 
175
  # Create the map for Slope
176
- slope_map = gee_folium.Map(controls={'scale':'bottom-left'})
177
  slope_map.add_tile_layer(
178
  wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri"
179
  )
@@ -589,6 +589,5 @@ if "result" in st.session_state:
589
  )
590
  write_info(f"""<div style="text-align: center;">{title}</div>""")
591
  param_map.addLayerControl()
592
- scale = folium.ScaleControl(position='bottomright', max_width=100)
593
- param_map.add_child(scale)
594
  param_map.to_streamlit()
 
132
 
133
  def get_dem_slope_maps(buffer_ee_geometry):
134
  # Create the map for DEM
135
+ dem_map = gee_folium.Map(controls={'scale':'bottomleft'})
136
  dem_map.add_tile_layer(
137
  wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri"
138
  )
 
173
  position='bottomright')
174
 
175
  # Create the map for Slope
176
+ slope_map = gee_folium.Map(controls={'scale':'bottomleft'})
177
  slope_map.add_tile_layer(
178
  wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri"
179
  )
 
589
  )
590
  write_info(f"""<div style="text-align: center;">{title}</div>""")
591
  param_map.addLayerControl()
592
+
 
593
  param_map.to_streamlit()