Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -267,6 +267,12 @@ folium.TileLayer(
|
|
267 |
# Add a LayerControl to the map to toggle between layers (Satellite View and Default One)
|
268 |
folium.LayerControl().add_to(m)
|
269 |
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
if show_interventions:
|
271 |
for index, row in interventions_df.iterrows():
|
272 |
status = "Done ✅" if row[interventions_df.columns[5]]!="Intervention prévue dans le futur / Planned future intervention" else "Planned ⌛"
|
|
|
267 |
# Add a LayerControl to the map to toggle between layers (Satellite View and Default One)
|
268 |
folium.LayerControl().add_to(m)
|
269 |
|
270 |
+
# Json with refreshed images from maxar
|
271 |
+
mosaics = ['10300100CB8C5600','10300100CBAF7D00','10300100E5404900','10300100E5A0A100'] #,'10300100EB8B4500','10300100EBC1A000','10300100ECC53700','10300100ED11EA00','10300500CFF91800','10300500E4F91400','10300500E4F91500','10300500E4F91700','10300500E4F91800','10300500E4F91900','10400100797DAC00','1040010083289000','10400100889ABF00','104001008A8E9800','104001008B75BB00','1040050047DC6400','1040050057DC8500','1050050030DE8900']
|
272 |
+
for i, mosaic_id in enumerate(mosaics):
|
273 |
+
mosaic = f'https://open.gishub.org/maxar-open-data/datasets/Morocco-Earthquake-Sept-2023/{mosaic_id}.json'
|
274 |
+
m.add_stac_layer(mosaic, name=f'mosaic_id_{i}')
|
275 |
+
|
276 |
if show_interventions:
|
277 |
for index, row in interventions_df.iterrows():
|
278 |
status = "Done ✅" if row[interventions_df.columns[5]]!="Intervention prévue dans le futur / Planned future intervention" else "Planned ⌛"
|