giswqs commited on
Commit
194ee59
·
1 Parent(s): 67407fb

Update timelapse web app

Browse files
Files changed (1) hide show
  1. 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
- self._draw_control.clear()
261
- draw_layer = self.find_layer("Drawn Features")
262
- if draw_layer is not None:
263
- self.remove(draw_layer)
 
 
 
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