方式1:手动一个个添加
左侧浏览器-XYZ Tiles-右键-新建连接
例如添加高德瓦片地址 https://wprd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}
双击即可呈现
收集到的一些图源,仅供参考,其中一些图源国界线有问题请注意使用。
方式2:这个保存成一个xml文件,通过“加载连接”一次性全部添加上
<!DOCTYPE connections>
<qgsXYZTilesConnections version="1.0">
<xyztiles username="" url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}" zmin="0" zmax="17" password="" referer="" authcfg="" tilePixelRatio="0" name="Esri卫星"/>
<xyztiles username="" url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{z}/{y}/{x}" zmin="0" zmax="13" password="" referer="" authcfg="" tilePixelRatio="0" name="Esri地形"/>
<xyztiles username="" url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}" zmin="0" zmax="17" password="" referer="" authcfg="" tilePixelRatio="0" name="Esri矢量"/>
<xyztiles username="" url="https://tile.opentopomap.org/{z}/{x}/{y}.png" zmin="1" zmax="17" password="" referer="" authcfg="" tilePixelRatio="0" name="OpenStreetMap地形"/>
<xyztiles username="" url="https://tile.openstreetmap.org/{z}/{x}/{y}.png" zmin="0" zmax="19" password="" referer="" authcfg="" tilePixelRatio="0" name="OpenStreetMap矢量"/>
<xyztiles username="" url="http://mt0.google.cn/vt/lyrs=t&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="google地形"/>
<xyztiles username="" 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" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="天地图影像"/>
<xyztiles username="" 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" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="天地图注记"/>
<xyztiles username="" 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" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="天地图矢量"/>
<xyztiles username="" url="http://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=1" zmin="1" zmax="19" password="" referer="" authcfg="" tilePixelRatio="0" name="必应卫星"/>
<xyztiles username="" url="https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}" zmin="0" zmax="19" password="" referer="" authcfg="" tilePixelRatio="0" name="谷歌卫星"/>
<xyztiles username="" url="https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z}" zmin="0" zmax="19" password="" referer="" authcfg="" tilePixelRatio="0" name="谷歌矢量"/>
<xyztiles username="" url="https://api.jl1mall.com/getMap/{z}/{x}/{-y}?mk=2d9bf902749f1630bc25fc720ba7c29f&tk=6a1976c931d388deb9980e6aa81fb842" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="长光"/>
<xyztiles username="" url="https://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="高德卫星"/>
<xyztiles username="" url="https://wprd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=6&x={x}&y={y}&z={z}" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="高德卫星新版"/>
<xyztiles username="" url="https://webst01.is.autonavi.com/appmaptile?style=7&x={x}&y={y}&z={z}" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="高德矢量"/>
<xyztiles username="" url="https://wprd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="高德矢量新版"/>
<xyztiles username="" url="https://wprd01.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=2&style=8&ltype=11" zmin="0" zmax="18" password="" referer="" authcfg="" tilePixelRatio="0" name="高德路网"/>
<xyztiles username="" url="https://tile.openstreetmap.org/{z}/{x}/{y}.png" zmin="0" zmax="19" password="" referer="" authcfg="" tilePixelRatio="0" name="OpenStreetMap"/>
</qgsXYZTilesConnections>
添加geoserver的xyz瓦片
格式 http://{ip}:{port}/tomcat/geoserver/gwc/service/wmts?layer={workspace}:{layername}&style=&tilematrixset=EPSG:900913&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image/png&TileMatrix=EPSG:900913:{z}&TileCol={x}&TileRow={y}
需要替换的是{ip}、{port}、{workspace}、{layername}
不要替换{x}、{y}、{z}