Spaces:
Running
Running
Update timelapse
Browse files- pages/01_timelapse.py +26 -0
- pages/{01_jrc.py β 02_jrc.py} +0 -0
- requirements.txt +2 -1
pages/01_timelapse.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import ee
|
3 |
+
import geemap
|
4 |
+
import ipywidgets as widgets
|
5 |
+
from IPython.display import display
|
6 |
+
import solara
|
7 |
+
|
8 |
+
|
9 |
+
class Map(geemap.Map):
|
10 |
+
def __init__(self, **kwargs):
|
11 |
+
super().__init__(**kwargs)
|
12 |
+
url = "https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}"
|
13 |
+
self.add_tile_layer(url, name="Google Satellite", attribution="Google")
|
14 |
+
self.add_gui("timelapse", basemap=None)
|
15 |
+
|
16 |
+
|
17 |
+
@solara.component
|
18 |
+
def Page():
|
19 |
+
with solara.Column(style={"min-width": "500px"}):
|
20 |
+
Map.element(
|
21 |
+
center=[20, -0],
|
22 |
+
zoom=2,
|
23 |
+
height="750px",
|
24 |
+
zoom_ctrl=False,
|
25 |
+
measure_ctrl=False,
|
26 |
+
)
|
pages/{01_jrc.py β 02_jrc.py}
RENAMED
File without changes
|
requirements.txt
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
ffmpeg-python
|
2 |
-
geemap
|
3 |
geopandas
|
|
|
4 |
pydantic< 2.0
|
5 |
solara
|
|
|
1 |
ffmpeg-python
|
2 |
+
# geemap
|
3 |
geopandas
|
4 |
+
git+https://github.com/giswqs/geemap
|
5 |
pydantic< 2.0
|
6 |
solara
|