Skip to content

Commit

Permalink
New Features: added new controls & styling SatelliteShorelines#63
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Aug 26, 2022
1 parent 697548e commit fc61aa7
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 69,861 deletions.
11 changes: 1 addition & 10 deletions CoastSeg/coastseg_map_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,6 @@ def remove_all(self):
self.remove_transects()
self.remove_shoreline()
self.remove_all_rois()
self.remove_saved_roi()
self.remove_shoreline_html()

def remove_transects(self):
Expand Down Expand Up @@ -726,18 +725,10 @@ def remove_shoreline_html(self):
"""Clear the shoreline html accoridon """
self.main_accordion.children[0].value ="Hover over the shoreline."

def remove_saved_roi(self):
"""Removes all the saved ROI"""
self.selected_ROI = None
# Remove the selected rois
existing_layer = self.m.find_layer('Selected ROIs')
if existing_layer is not None:
self.m.remove_layer(existing_layer)
self.selected_layer = None
self.selected_set = set()

def remove_all_rois(self):
"""Removes all the unselected rois from the map """
self.selected_ROI = None
# Remove the selected rois
existing_layer = self.m.find_layer('Selected ROIs')
if existing_layer is not None:
Expand Down

0 comments on commit fc61aa7

Please sign in to comment.