UjjwalKGupta commited on
Commit
518e635
1 Parent(s): 8de5b4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -159,10 +159,10 @@ def get_dem_slope_maps(buffer_ee_geometry):
159
  # Create a colormap
160
  #colormap = cm.LinearColormap(colors=vis_params["palette"], vmin=vis_params["min"], vmax=vis_params["max"])
161
  #dem_map.add_child(colormap)
162
- dem_map.add_colormap(vmin=min_value, vmax=max_value, palette=vis_params['palette'],
163
- vis_params=vis_params,
164
  discrete=False, tick_size=10, bg_color='white',
165
- transparent=True)
166
 
167
  # Create the map for Slope
168
  slope_map = gee_folium.Map()
 
159
  # Create a colormap
160
  #colormap = cm.LinearColormap(colors=vis_params["palette"], vmin=vis_params["min"], vmax=vis_params["max"])
161
  #dem_map.add_child(colormap)
162
+ dem_map.add_colormap(width=4,vmin=min_value, vmax=max_value, palette=vis_params['palette'],
163
+ vis_params=vis_params, label='Elevation(m)',
164
  discrete=False, tick_size=10, bg_color='white',
165
+ transparent=True, orientation='vertical')
166
 
167
  # Create the map for Slope
168
  slope_map = gee_folium.Map()