geeemap学习总结(2)——地图底图应用

1. 加载库中已有图层

python 复制代码
import os
os.environ['HTTP_PROXY'] = 'http://127.0.0.1:8001'
os.environ['HTTPS_PROXY'] = 'http://127.0.0.1:8001'
# 设置中心位置/地图层级/图层加载高度,加载图层
import geemap
Map=geemap.Map(center=[40, 100], zoom=4, height=600)
Map
python 复制代码
# 添加已经集成的底图图层
Map.add_basemap("OpenTopoMap")

2. 加载外部数据图层

python 复制代码
# 通过WMS服务添加图层
Map = geemap.Map(center=[40, -100], zoom=4)
url = 'https://www.mrlc.gov/geoserver/mrlc_display/NLCD_2019_Land_Cover_L48/wms?'
Map.add_wms_layer(
    url=url,
    layers='NLCD_2019_Land_Cover_L48',
    name='NLCD 2019',
    format='image/png',
    attribution='MRLC',
    transparent=True,
)
Map
python 复制代码
# 加载XYZ tile图层
Map = geemap.Map(center=[40, 100], zoom=4, height=600)
Map.add_tile_layer(
    url="https://mt1.google.com/vt/lyrs=p&x={x}&y={y}&z={z}",
    name="Google Terrain",
    attribution="Google",
)
Map
相关推荐
U***e633 小时前
ReactRESTfulAPI案例
mongodb·arcgis·语言模型
星月前端21 小时前
[特殊字符]面向 ArcGIS for JavaScript(4.x)开发者的「坐标系统(CRS / 投影)」全面解读
开发语言·javascript·arcgis
q***9941 天前
node.js+npm的环境配置以及添加镜像(保姆级教程)
arcgis·npm·node.js
爱地球的曲奇2 天前
ArcGIS(ArcMap&Pro)布局视图的在线地图与导出后的图片细节不一样
arcgis
DreamLife☼4 天前
Node-RED:自定义节点开发:打造专属工具箱
arcgis·调试·封装·npm包·自定义节点·节点开发·html模板
qq_214803294 天前
ArcGIS Runtime Java SDK初始化报错:Could not find runtime
java·开发语言·arcgis
ZHSH.7 天前
ArcGIS地统计综合实战 | 洛杉矶臭氧浓度预测-pretict-pretictable-pretiction
arcgis·预测·地统计分析
cehuishi95279 天前
利用ARCGIS手搓宗地图详细版
arcgis
百***78459 天前
node.js+npm的环境配置以及添加镜像(保姆级教程)
arcgis·npm·node.js
枝上棉蛮9 天前
从“高门槛”到“零门槛”:ArcGIS 和 GISBox如何破解中小用户GIS工具使用难题?
arcgis·gis·gisbox·服务分发·场景编辑·切片转换·gis服务器