很多时候我们会困惑与GEE中没有其它底图可供加载,在GEE中仅仅提供了两个底图,一个是矢量底图,另外一个是卫星底图,并伴随着添加地形和地理名称的地图展示,今天我们将展示如何添加一个底图加载到GEE上,其实本质上就是添加一个变量,然后直接加载就行,这里仅需要GEE当中的一个函数:
Map.setOptions(mapTypeId, styles, types)
Modifies the Google Maps basemap. Allows for:
1) Setting the current MapType. 2) Providing custom styles for the basemap (MapTypeStyles). 3) Setting the list of available mapTypesIds for the basemap.
If called with no parameters, resets the map type to the google default.
Returns the map.
Arguments:
mapTypeId (String, optional):
A mapTypeId to set the basemap to. Can be one of "ROADMAP", "SATELLITE", "HYBRID" or "TERRAIN" to select one of the standard Google Maps API map types, or one of the keys specified in the opt_styles dictionary. If left as null and only 1 style