Skip to content

Commit

Permalink
xyz_tiles --> custom_tiles["xyz"]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbcode committed Jun 30, 2023
1 parent 6225070 commit 2785eda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geemap/cartoee.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from matplotlib import cm, colors
from matplotlib import font_manager as mfonts

from .basemaps import xyz_tiles
from .basemaps import custom_tiles

try:
import cartopy.crs as ccrs
Expand Down Expand Up @@ -160,7 +160,8 @@ def get_map(ee_object, proj=None, basemap=None, zoom_level=2, **kwargs):
if basemap is not None:
if isinstance(basemap, str):
if basemap.upper() in ["ROADMAP", "SATELLITE", "TERRAIN", "HYBRID"]:
basemap = cimgt.GoogleTiles(url=xyz_tiles[basemap.upper()]["url"])
basemap = cimgt.GoogleTiles(
url=custom_tiles["xyz"][basemap.upper()]["url"])

try:
ax.add_image(basemap, zoom_level)
Expand Down

0 comments on commit 2785eda

Please sign in to comment.