Skip to content

Commit

Permalink
Set default add_header to False for add_widget (#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Sep 16, 2023
1 parent b3841b3 commit 2e99f17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geemap/geemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6155,7 +6155,7 @@ def add_widget(
self,
content,
position="bottomright",
add_header=True,
add_header=False,
opened=True,
show_close_button=True,
widget_icon="gear",
Expand All @@ -6170,7 +6170,7 @@ def add_widget(
Args:
content (str | ipywidgets.Widget | object): The widget to add.
position (str, optional): The position of the widget. Defaults to "bottomright".
add_header (bool, optional): Whether to add a header with close buttons to the widget. Defaults to True.
add_header (bool, optional): Whether to add a header with close buttons to the widget. Defaults to False.
opened (bool, optional): Whether to open the toolbar. Defaults to True.
show_close_button (bool, optional): Whether to show the close button. Defaults to True.
widget_icon (str, optional): The icon name for the toolbar button. Defaults to 'gear'.
Expand Down Expand Up @@ -6241,7 +6241,7 @@ def add_image(self, image, position="bottomright", **kwargs):
else:
raise Exception("Invalid image")

self.add_widget(image, position=position)
self.add_widget(image, position=position, **kwargs)

def add_html(self, html, position="bottomright", **kwargs):
"""Add HTML to the map.
Expand Down

0 comments on commit 2e99f17

Please sign in to comment.