Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import ipywidgets
|
|
| 9 |
import solara
|
| 10 |
|
| 11 |
instructions_top = '''
|
| 12 |
-
:
|
|
| 66 |
with solara.Card(margin=10):
|
| 67 |
with solara.ColumnsResponsive(default=12, small=12, medium=6, large=6, xlarge=6):
|
| 68 |
with solara.Column(align='center'):
|
| 69 |
-
solara.Select(label="Processing Level", value=s2_level, values=['L2A','L1C'], on_value=update_level)
|
| 70 |
m = leafmap.Map(
|
| 71 |
#height=500px,
|
| 72 |
-
width='
|
| 73 |
-
layout=ipywidgets.Layout(flex='1 1 auto', width='500px', height='500px', max_width='90rem'),
|
| 74 |
zoom=zoom.value,
|
| 75 |
center=center.value,
|
| 76 |
draw_control=False,
|
|
@@ -80,7 +78,8 @@ def Page():
|
|
| 80 |
attribution_control=True,
|
| 81 |
)
|
| 82 |
display(m)
|
| 83 |
-
button = solara.Button("Find Sample", on_click=update_image, height='80px')
|
|
|
|
| 84 |
with solara.Column(align='center'):
|
| 85 |
output = solara.Image(image_data.value)
|
| 86 |
|
|
|
|
| 9 |
import solara
|
| 10 |
|
| 11 |
instructions_top = '''
|
| 12 |
+

|
| 13 |
# Dataset Viewer
|
| 14 |
|
| 15 |
This app provides a way of exploring samples present in the MajorTOM-Core dataset.
|
|
|
|
| 66 |
with solara.Card(margin=10):
|
| 67 |
with solara.ColumnsResponsive(default=12, small=12, medium=6, large=6, xlarge=6):
|
| 68 |
with solara.Column(align='center'):
|
|
|
|
| 69 |
m = leafmap.Map(
|
| 70 |
#height=500px,
|
| 71 |
+
layout=ipywidgets.Layout(overflow='hidden', width='560px', height='560px', max_width='90rem'),
|
|
|
|
| 72 |
zoom=zoom.value,
|
| 73 |
center=center.value,
|
| 74 |
draw_control=False,
|
|
|
|
| 78 |
attribution_control=True,
|
| 79 |
)
|
| 80 |
display(m)
|
| 81 |
+
button = solara.Button("Find Sample", on_click=update_image, height='80px')
|
| 82 |
+
solara.Select(label="Processing Level", value=s2_level, values=['L2A','L1C'], on_value=update_level)
|
| 83 |
with solara.Column(align='center'):
|
| 84 |
output = solara.Image(image_data.value)
|
| 85 |
|