Skip to content

Commit

Permalink
Reset compute label
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Sep 24, 2023
1 parent b730c58 commit ba5dd37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion geemap/map_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,7 @@ def on_import_click(self):
vis["gamma"] = self._gamma_slider.value

common.create_code_cell(f"vis_params = {str(vis)}")
print(f"vis_params = {str(vis)}")

def on_apply_click(self):
vis = {}
Expand Down Expand Up @@ -1806,6 +1807,7 @@ def on_apply_click(self):
self._ee_object.style(**vis), {}, self._new_layer_name.value
)
self._ee_layer.visible = False
self._compute_label.value = ""

elif (
self._style_chk.value
Expand Down Expand Up @@ -2069,4 +2071,5 @@ def _field_changed(self, change):

def on_import_click(self):
vis = self._get_vis_params()
common.create_code_cell(f"vis_params = {str(vis)}")
common.create_code_cell(f"style = {str(vis)}")
print(f"style = {str(vis)}")

0 comments on commit ba5dd37

Please sign in to comment.