MCPcopy
hub / github.com/gee-community/geemap / check_basemap

Function check_basemap

geemap/common.py:14788–14806  ·  view source on GitHub ↗

Returns the normalized Google basemap name. Args: basemap: The basemap name.

(basemap: str)

Source from the content-addressed store, hash-verified

14786
14787
14788def check_basemap(basemap: str) -> str:
14789 """Returns the normalized Google basemap name.
14790
14791 Args:
14792 basemap: The basemap name.
14793 """
14794 if not isinstance(basemap, str):
14795 return basemap
14796
14797 map_dict = {
14798 "ROADMAP": "Google Maps",
14799 "SATELLITE": "Google Satellite",
14800 "TERRAIN": "Google Terrain",
14801 "HYBRID": "Google Hybrid",
14802 }
14803 if basemap.upper() in map_dict.keys():
14804 return map_dict[basemap.upper()]
14805
14806 return basemap
14807
14808
14809def get_ee_token():

Callers 1

addMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected