Skip to content

Commit

Permalink
Fix raster editor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Oct 6, 2023
1 parent 597c509 commit 3afbc8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion geemap/map_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def _set_css_in_cell_output():

class Theme:
"""Applies dynamic theme in Colab, otherwise light."""

current_theme = "colab" if common.in_colab_shell() else "light"

@staticmethod
Expand Down Expand Up @@ -1038,7 +1039,10 @@ def __init__(self, host_map, layer_dict):
self._max_value = self._vis_params["max"]
self._right_value = 2 * self._max_value
if "gamma" in self._vis_params.keys():
self._layer_gamma = self._vis_params["gamma"]
if isinstance(self._vis_params["gamma"], list):
self._layer_gamma = self._vis_params["gamma"][0]
else:
self._layer_gamma = self._vis_params["gamma"]
if "bands" in self._vis_params.keys():
self._sel_bands = self._vis_params["bands"]
if "palette" in self._vis_params.keys():
Expand Down

0 comments on commit 3afbc8a

Please sign in to comment.