Spaces:
Sleeping
Sleeping
Update pages/05_GOES_NBR.py
Browse files- pages/05_GOES_NBR.py +10 -4
pages/05_GOES_NBR.py
CHANGED
@@ -48,18 +48,24 @@ def Page():
|
|
48 |
|
49 |
def update_map(selected_fire):
|
50 |
map_instance.clear_layers()
|
|
|
|
|
51 |
if selected_fire == "North Complex":
|
52 |
-
map_instance.addLayer(map_instance.north_complex, map_instance.dNBRvisParams, 'North Complex GOES NBR', True)
|
53 |
print("Adding North Complex layer")
|
|
|
|
|
54 |
elif selected_fire == "Dixie":
|
55 |
-
map_instance.addLayer(map_instance.dixie, map_instance.dNBRvisParams, 'Dixie Complex GOES NBR', True)
|
56 |
print("Adding Dixie layer")
|
|
|
|
|
57 |
elif selected_fire == "Cameron Peak":
|
58 |
-
map_instance.addLayer(map_instance.cam_peak, map_instance.dNBRvisParams, 'Cameron Peak GOES NBR', True)
|
59 |
print("Adding Cam Peak layer")
|
|
|
|
|
60 |
elif selected_fire == "August Complex":
|
61 |
-
map_instance.addLayer(map_instance.aug_complex, map_instance.dNBRvisParams, 'August Complex GOES NBR', True)
|
62 |
print("Adding August Complex layer")
|
|
|
|
|
63 |
|
64 |
with solara.Column(style={"min-width": "500px"}):
|
65 |
map_widget = Map.element(
|
|
|
48 |
|
49 |
def update_map(selected_fire):
|
50 |
map_instance.clear_layers()
|
51 |
+
print("Adding layer")
|
52 |
+
|
53 |
if selected_fire == "North Complex":
|
|
|
54 |
print("Adding North Complex layer")
|
55 |
+
map_instance.addLayer(map_instance.north_complex, map_instance.dNBRvisParams, 'North Complex GOES NBR', True)
|
56 |
+
|
57 |
elif selected_fire == "Dixie":
|
|
|
58 |
print("Adding Dixie layer")
|
59 |
+
map_instance.addLayer(map_instance.dixie, map_instance.dNBRvisParams, 'Dixie Complex GOES NBR', True)
|
60 |
+
|
61 |
elif selected_fire == "Cameron Peak":
|
|
|
62 |
print("Adding Cam Peak layer")
|
63 |
+
map_instance.addLayer(map_instance.cam_peak, map_instance.dNBRvisParams, 'Cameron Peak GOES NBR', True)
|
64 |
+
|
65 |
elif selected_fire == "August Complex":
|
|
|
66 |
print("Adding August Complex layer")
|
67 |
+
map_instance.addLayer(map_instance.aug_complex, map_instance.dNBRvisParams, 'August Complex GOES NBR', True)
|
68 |
+
|
69 |
|
70 |
with solara.Column(style={"min-width": "500px"}):
|
71 |
map_widget = Map.element(
|