Skip to content

Commit

Permalink
Update timelapse web app
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Aug 13, 2024
1 parent 67407fb commit 194ee59
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pages/02_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,13 @@ def split_btn_click(change):
)
output.clear_output()

self._draw_control.clear()
draw_layer = self.find_layer("Drawn Features")
if draw_layer is not None:
self.remove(draw_layer)
try:
self._draw_control.clear()
draw_layer = self.find_layer("Drawn Features")
if draw_layer is not None:
self.remove(draw_layer)
except Exception as e:
print(e)

split_btn.on_click(split_btn_click)

Expand Down

0 comments on commit 194ee59

Please sign in to comment.