Spaces:
Running
Running
Update home page
Browse files- pages/00_home.py +2 -5
- pages/01_gswis.py +12 -0
pages/00_home.py
CHANGED
@@ -14,12 +14,9 @@ def Page():
|
|
14 |
resolution, with each band corresponding to one of the 5 datasets used.
|
15 |
The dataset comprises of a total of 5153 grids, each grid having a 2°×2° dimension.
|
16 |
|
17 |
-
|
18 |
-
- Hugging Face: <https://huggingface.co/spaces/giswqs/solara-gswis>
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
![](https://i.imgur.com/4uIEnAJ.gif)
|
23 |
|
24 |
"""
|
25 |
|
|
|
14 |
resolution, with each band corresponding to one of the 5 datasets used.
|
15 |
The dataset comprises of a total of 5153 grids, each grid having a 2°×2° dimension.
|
16 |
|
17 |
+
### Datasets
|
|
|
18 |
|
19 |
+
TBA.
|
|
|
|
|
20 |
|
21 |
"""
|
22 |
|
pages/01_gswis.py
CHANGED
@@ -22,6 +22,18 @@ class Map(geemap.Map):
|
|
22 |
self.addLayer(gswe.select("esri"), {'palette': ['yellow']}, "ESRI")
|
23 |
self.addLayer(gswe.select("hydrolakes"), {'palette': ['purple']}, "Hydrolakes")
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
@solara.component
|
27 |
def Page():
|
|
|
22 |
self.addLayer(gswe.select("esri"), {'palette': ['yellow']}, "ESRI")
|
23 |
self.addLayer(gswe.select("hydrolakes"), {'palette': ['purple']}, "Hydrolakes")
|
24 |
|
25 |
+
legend_dict = {
|
26 |
+
'ESA': 'ff0000',
|
27 |
+
'OSM': '00ff00',
|
28 |
+
'JRC': '0000ff',
|
29 |
+
'ESRI': 'ffff00',
|
30 |
+
'Hydrolakes': '800080'
|
31 |
+
}
|
32 |
+
self.add_legend(legend_dict=legend_dict, position='bottomright')
|
33 |
+
fc = ee.FeatureCollection('users/giswqs/public/countries')
|
34 |
+
style = {'color': '000000ff', 'width': 1, 'fillColor': '00000000'}
|
35 |
+
self.addLayer(fc.style(**style), {}, 'Countries', False)
|
36 |
+
|
37 |
|
38 |
@solara.component
|
39 |
def Page():
|