<!DOCTYPE connections>
<qgsXYZTilesConnections version="1.0">
<xyztiles name="必应卫星" authcfg="" url="http://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=1" referer="" zmax="19" password="" zmin="1" username=""/>
<xyztiles name="Esri卫星" authcfg="" url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}" referer="" zmax="17" password="" zmin="0" username=""/>
<xyztiles name="Esri矢量" authcfg="" url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}" referer="" zmax="17" password="" zmin="0" username=""/>
<xyztiles name="Esri地形" authcfg="" url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{z}/{y}/{x}" referer="" zmax="13" password="" zmin="0" username=""/>
<xyztiles name="谷歌矢量" authcfg="" url="https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z}" referer="" zmax="19" password="" zmin="0" username=""/>
<xyztiles name="谷歌卫星" authcfg="" url="https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}" referer="" zmax="19" password="" zmin="0" username=""/>
<xyztiles name="OpenStreetMap矢量" authcfg="" url="https://tile.openstreetmap.org/{z}/{x}/{y}.png" referer="" zmax="19" password="" zmin="0" username=""/>
<xyztiles name="OpenStreetMap地形" authcfg="" url="https://tile.opentopomap.org/{z}/{x}/{y}.png" referer="Kartendaten: © OpenStreetMap-Mitwirkende, SRTM | Kartendarstellung: © OpenTopoMap (CC-BY-SA)" zmax="17" password="" zmin="1" username=""/>
<xyztiles name="google地形" authcfg="" url="http://mt0.google.cn/vt/lyrs=t&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}" referer="" zmax="18" password="" zmin="0" username=""/>
<xyztiles name="天地图影像" authcfg="" url="http://t0.tianditu.com/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&format=tiles&tk=40b190683706230fade806c1ac8c14e8" referer="" zmax="18" password="" zmin="0" username=""/>
<xyztiles name="天地图注记" authcfg="" url="http://t0.tianditu.com/cva_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cva&tileMatrixSet=w&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&format=tiles&tk=40b190683706230fade806c1ac8c14e8" referer="" zmax="18" password="" zmin="0" username=""/>
<xyztiles name="天地图矢量" authcfg="" url="http://t0.tianditu.com/vec_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=vec&tileMatrixSet=w&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&format=tiles&tk=40b190683706230fade806c1ac8c14e8" referer="" zmax="18" password="" zmin="0" username=""/>
<xyztiles name="高德卫星" authcfg="" url="https://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}" referer="" zmax="18" password="" zmin="0" username=""/>
<xyztiles name="高德路网" authcfg="" url="https://wprd01.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=2&style=8<ype=11" referer="" zmax="18" password="" zmin="0" username=""/>
</qgsXYZTilesConnections>
OpenTopoMap https://tile.opentopomap.org/{z}/{x}/{y}.png (See comment below for attribution) OpenStreetMap http://tile.openstreetmap.org/{z}/{x}/{y}.png Google Hybrid https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z} Google Satellite https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z} Google Road https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z} (Codes for other tile types from Google found here) Bing Aerial http://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=1
OpenLayer 加载天地图
如:http://t3.tianditu.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=c&TileMatrix=6&TileRow=9&TileCol=53&style=default&format=tiles //正确的写法是:http://t3.tianditu.cn/img_c/wmts?service=wmts{%26}request=GetTile{%26}version=1.0.0{%26}LAYER=img{%26}tileMatrixSet=c{%26}TileMatrix={z}{%26}TileRow={y}{%26}TileCol={x}{%26}style=default{%26}format=tiles
https://t4.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL=1711&TILEROW=835&TILEMATRIX=11&tk=cec2a9c687df31dd4fe17abfa5579eff
https://t0.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL=1711&TILEROW=835&TILEMATRIX=11&tk=cec2a9c687df31dd4fe17abfa5579eff
XYZ-Tile 天地图
https://t4.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=cec2a9c687df31dd4fe17abfa5579eff
参考: https://gis.stackexchange.com/questions/20191/adding-basemaps-from-google-or-bing-in-qgis
参考: https://newbedev.com/adding-basemaps-from-google-or-bing-in-qgis
参考: https://blog.csdn.net/QGISClass/article/details/107459636
参考: https://www.cnblogs.com/HandyLi/p/11137367.html