UjjwalKGupta
commited on
Commit
•
b3172ef
1
Parent(s):
f315934
Add ESRI Map and change contour interval
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def get_dem_slope_maps(buffer_ee_geometry):
|
|
116 |
|
117 |
# Generate contour lines using elevation thresholds
|
118 |
terrain = ee.Algorithms.Terrain(dem_layer)
|
119 |
-
contour_interval =
|
120 |
contours = terrain.select('elevation').subtract(terrain.select('elevation').mod(contour_interval)).rename('contours')
|
121 |
|
122 |
# Calculate the minimum and maximum values
|
@@ -486,6 +486,7 @@ if "result" in st.session_state:
|
|
486 |
for col, param_map, title in zip(cols, [dem_map, slope_map], ["DEM Map", "Slope Map"]):
|
487 |
with col:
|
488 |
add_geometry_to_maps([param_map])
|
|
|
489 |
write_info(f"""
|
490 |
<div style="text-align: center;">
|
491 |
<h4>{title}</h4>
|
|
|
116 |
|
117 |
# Generate contour lines using elevation thresholds
|
118 |
terrain = ee.Algorithms.Terrain(dem_layer)
|
119 |
+
contour_interval = 1
|
120 |
contours = terrain.select('elevation').subtract(terrain.select('elevation').mod(contour_interval)).rename('contours')
|
121 |
|
122 |
# Calculate the minimum and maximum values
|
|
|
486 |
for col, param_map, title in zip(cols, [dem_map, slope_map], ["DEM Map", "Slope Map"]):
|
487 |
with col:
|
488 |
add_geometry_to_maps([param_map])
|
489 |
+
m.add_tile_layer(wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri")
|
490 |
write_info(f"""
|
491 |
<div style="text-align: center;">
|
492 |
<h4>{title}</h4>
|