Spaces:
Sleeping
Sleeping
got rid of console logs
Browse files- pages/05_GOES_NBR.py +0 -7
pages/05_GOES_NBR.py
CHANGED
@@ -47,27 +47,20 @@ def Page():
|
|
47 |
map_instance = Map(element_id="map")
|
48 |
|
49 |
def update_map(selected_fire):
|
50 |
-
console.log("Selected fire:", selected_fire);
|
51 |
map_instance.clear_layers()
|
52 |
if selected_fire == "North Complex":
|
53 |
-
console.log("Adding North Complex layer");
|
54 |
map_instance.addLayer(map_instance.north_complex, map_instance.dNBRvisParams, 'North Complex GOES NBR', True)
|
55 |
print("Adding North Complex layer")
|
56 |
elif selected_fire == "Dixie":
|
57 |
-
console.log("Adding Dixie layer");
|
58 |
map_instance.addLayer(map_instance.dixie, map_instance.dNBRvisParams, 'Dixie Complex GOES NBR', True)
|
59 |
print("Adding Dixie layer")
|
60 |
elif selected_fire == "Cameron Peak":
|
61 |
-
console.log("Adding Cam Peak layer");
|
62 |
map_instance.addLayer(map_instance.cam_peak, map_instance.dNBRvisParams, 'Cameron Peak GOES NBR', True)
|
63 |
print("Adding Cam Peak layer")
|
64 |
elif selected_fire == "August Complex":
|
65 |
-
console.log("Adding Aug Complex layer");
|
66 |
map_instance.addLayer(map_instance.aug_complex, map_instance.dNBRvisParams, 'August Complex GOES NBR', True)
|
67 |
print("Adding August Complex layer")
|
68 |
|
69 |
-
console.log("Layers on the map:", map_instance.layer_names)
|
70 |
-
|
71 |
with solara.Column(style={"min-width": "500px"}):
|
72 |
map_widget = Map.element(
|
73 |
center=[40, -100],
|
|
|
47 |
map_instance = Map(element_id="map")
|
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(
|
66 |
center=[40, -100],
|