Skip to content

Commit

Permalink
Set draw export to False by default
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Mar 14, 2022
1 parent 0939a18 commit 100edeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions geemap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def hex_to_rgb(value="FFFFFF"):
"""
value = value.lstrip("#")
lv = len(value)
return tuple(int(value[i : i + lv // 3], 16) for i in range(0, lv, lv // 3))
return tuple(int(value[i: i + lv // 3], 16) for i in range(0, lv, lv // 3))


def check_color(in_color):
Expand Down Expand Up @@ -7736,7 +7736,7 @@ def planet_monthly_tiles_tropical(
link = planet_monthly_tropical(api_key, token_name)
for url in link:
index = url.find("20")
name = "Planet_" + url[index : index + 7]
name = "Planet_" + url[index: index + 7]

if tile_format == "ipyleaflet":
tile = ipyleaflet.TileLayer(url=url, attribution="Planet", name=name)
Expand Down Expand Up @@ -7781,7 +7781,7 @@ def planet_biannual_tiles_tropical(
link = planet_biannual_tropical(api_key, token_name)
for url in link:
index = url.find("20")
name = "Planet_" + url[index : index + 15]
name = "Planet_" + url[index: index + 15]
if tile_format == "ipyleaflet":
tile = ipyleaflet.TileLayer(url=url, attribution="Planet", name=name)
else:
Expand Down Expand Up @@ -7954,7 +7954,7 @@ def planet_monthly_tiles(

for url in link:
index = url.find("20")
name = "Planet_" + url[index : index + 7]
name = "Planet_" + url[index: index + 7]

if tile_format == "ipyleaflet":
tile = ipyleaflet.TileLayer(url=url, attribution="Planet", name=name)
Expand Down Expand Up @@ -7999,7 +7999,7 @@ def planet_quarterly_tiles(

for url in links:
index = url.find("20")
name = "Planet_" + url[index : index + 6]
name = "Planet_" + url[index: index + 6]

if tile_format == "ipyleaflet":
tile = ipyleaflet.TileLayer(url=url, attribution="Planet", name=name)
Expand Down
2 changes: 1 addition & 1 deletion geemap/foliumap.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, **kwargs):
if "plugin_Draw" not in kwargs.keys():
kwargs["plugin_Draw"] = True
if "Draw_export" not in kwargs.keys():
kwargs["Draw_export"] = True
kwargs["Draw_export"] = False
if "plugin_MiniMap" not in kwargs.keys():
kwargs["plugin_MiniMap"] = False
if "plugin_LayerControl" not in kwargs.keys():
Expand Down

0 comments on commit 100edeb

Please sign in to comment.