UjjwalKGupta
commited on
Commit
•
0b9c7a3
1
Parent(s):
5e56dc9
ESRI Tiles in NDVI Map
Browse files
app.py
CHANGED
@@ -531,6 +531,7 @@ if "result" in st.session_state:
|
|
531 |
mosaic = result_df.loc[daterange_str, f"mosaic_{veg_index}"]
|
532 |
with col:
|
533 |
m = gee_folium.Map()
|
|
|
534 |
veg_index_layer = gee_folium.ee_tile_layer(mosaic, {"bands": [veg_index], "min": 0, "max": 1})
|
535 |
|
536 |
if satellite == "COPERNICUS/S2_SR_HARMONIZED":
|
@@ -558,7 +559,7 @@ if "result" in st.session_state:
|
|
558 |
vis_params = {'min': -0.1,
|
559 |
'max': 0.6,
|
560 |
'palette': ['#0000FF', '#FF0000', '#FFFF00', '#FFA500', '#00FE00', '#00A400', '#006D00']}
|
561 |
-
m.add_layer(mosaic.select(veg_index).clip(
|
562 |
|
563 |
# add colorbar
|
564 |
# m.add_colorbar(colors=["#000000", "#00FF00"], vmin=0.0, vmax=1.0)
|
|
|
531 |
mosaic = result_df.loc[daterange_str, f"mosaic_{veg_index}"]
|
532 |
with col:
|
533 |
m = gee_folium.Map()
|
534 |
+
m.add_tile_layer(wayback_mapping[latest_date], name=f"Esri Wayback - {latest_date.replace('-', '/')}", attribution="Esri")
|
535 |
veg_index_layer = gee_folium.ee_tile_layer(mosaic, {"bands": [veg_index], "min": 0, "max": 1})
|
536 |
|
537 |
if satellite == "COPERNICUS/S2_SR_HARMONIZED":
|
|
|
559 |
vis_params = {'min': -0.1,
|
560 |
'max': 0.6,
|
561 |
'palette': ['#0000FF', '#FF0000', '#FFFF00', '#FFA500', '#00FE00', '#00A400', '#006D00']}
|
562 |
+
m.add_layer(mosaic.select(veg_index).clip(outer_ee_geometry), vis_params )
|
563 |
|
564 |
# add colorbar
|
565 |
# m.add_colorbar(colors=["#000000", "#00FF00"], vmin=0.0, vmax=1.0)
|