Skip to content

Commit

Permalink
Fixed API key bug
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Oct 17, 2021
1 parent 83786a9 commit 65295ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions leafmap/basemaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,11 @@ def xyz_to_pydeck():
url = xyz_dict[item].build_url()
pydeck_dict[item] = url

# if os.environ.get("PLANET_API_KEY") is not None:
if os.environ.get("PLANET_API_KEY") is not None:

planet_dict = planet_tiles_tropical(tile_format="ipyleaflet")
for tile in planet_dict:
pydeck_dict[tile] = planet_dict[tile].url
planet_dict = planet_tiles_tropical(tile_format="ipyleaflet")
for tile in planet_dict:
pydeck_dict[tile] = planet_dict[tile].url

pdk.settings.custom_libraries = [
{
Expand Down

0 comments on commit 65295ee

Please sign in to comment.