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
相关推荐
非科班Java出身GISer6 小时前
ArcGIS JS 基础教程(48):SceneView watch 状态监听
arcgis·arcgis js基础·arcgis js入门·arcgis js监听状态·arcgis js监听事件·arcgis js 监听飞行·arcgis js 监听功能
JudithHuang2 天前
React 嵌套路由与布局
前端·react.js·arcgis·react·react router
Dxy12393102164 天前
JS DES 加密详解
开发语言·javascript·arcgis
非科班Java出身GISer6 天前
ArcGIS JS 基础教程(46):编辑要素属性 FeatureForm
arcgis·arcgis js编辑要素·arcgis js 要素·arcgis js要素属性·arcgis js 编辑属性·arcgis js编辑要素属性
梅如你7 天前
ISPRS | 1990-2020年间中国人工林与天然林的空间分布数据
arcgis·gis·遥感
limit007510 天前
公开 WMTS / XYZ 瓦片接入 Cesium:6 类常见问题与排查顺序
chrome·低代码·arcgis·web3·旅游
limit007511 天前
三维模型悬空与切片偏移的排查顺序
低代码·3d·arcgis·web3·安卓·webgl
最强小杰11 天前
Continue + minimax-m3 接入教程:协议、模型 ID、404 与工具调用排错
arcgis·ai
2501_9343044015 天前
新增2026年! 2012-2026年全国逐月夜间灯光数据
arcgis·gis数据
梅如你16 天前
中国2026年路网数据
arcgis·gis·遥感