Spaces:
Running
Running
Update timelapse web app
Browse files- pages/02_timeseries.py +7 -4
pages/02_timeseries.py
CHANGED
@@ -257,10 +257,13 @@ class Map(geemap.Map):
|
|
257 |
)
|
258 |
output.clear_output()
|
259 |
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
|
|
|
|
|
|
264 |
|
265 |
split_btn.on_click(split_btn_click)
|
266 |
|
|
|
257 |
)
|
258 |
output.clear_output()
|
259 |
|
260 |
+
try:
|
261 |
+
self._draw_control.clear()
|
262 |
+
draw_layer = self.find_layer("Drawn Features")
|
263 |
+
if draw_layer is not None:
|
264 |
+
self.remove(draw_layer)
|
265 |
+
except Exception as e:
|
266 |
+
print(e)
|
267 |
|
268 |
split_btn.on_click(split_btn_click)
|
269 |
|