參考:https://deyihu.github.io/src/maptalks-tileLayercollection/examples/?tdsourcetag=s_pcqq_aiomsg
以下url中:
Z-瓦片層級,一般支持0-18級,越大代表越清晰;
X-瓦片列號,從西向東(0->360),依次0,1,2,……;
Y-瓦片行號,從北向南(有些也可能是從南向北),依次0,1,2,……;
cesium中通過UrlTemplateImageryProvider類訪問:
1 new Cesium.UrlTemplateImageryProvider({
2 //調用影像服務
3 url: "https://mt1.google.cn/vt/lyrs=s&x={x}&y={y}&z={z}"
4 })
其他訪問方式:
//leaflet訪問 L.tileLayer('https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}', { maxZoom: 18, attribution: 'ArcGIS Map', id: 'arcgis.streets' }).addTo(map); //ol3 new ol.layer.Tile({ source: new ol.source.XYZ({ url: 'https://mt2.google.cn/vt/lyrs=s&x={x}&y={y}&z={z}' }) }) //openlayers2 new OpenLayers.Layer.XYZ( "layername", ["https://mt1.google.cn/vt/lyrs=s&x={x}&y={y}&z={z}", "https://mt2.google.cn/vt/lyrs=s&x={x}&y={y}&z={z}", "https://mt3.google.cn/vt/lyrs=s&x={x}&y={y}&z={z}" ], { attribution: "XYZ Imagery", transitionEffect: "resize" } )
不需要token的:
1、arcgis
街道圖:
https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}

灰色圖:
https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer/tile/{z}/{y}/{x}

深藍夜色:
https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}

2、googlemap
lys參數可選值包括:h(街道圖)、m(街道圖)、p(街道圖)、r(街道圖)、s(影像無注記)、y(影像含注記)、t(地形圖)
街道圖:
https://www.google.cn/maps/vt?lyrs=m@189&gl=cn&x={x}&y={y}&z={z}

衛星圖:
https://www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}(或者http://mt1.google.cn/vt/lyrs=s&x={x}&y={y}&z={z})

3、Amap(高德地圖)
街道:(z>=3才有數據)
https://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}

影像圖:
https://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}

4、OSM
街道圖(國外服務器,訪問較慢):
https://c.tile.openstreetmap.org/{z}/{x}/{y}.png

https://tile-b.openstreetmap.fr/hot/{z}/{x}/{y}.png

5、Mapbox
建築圖:(國內數據略陳舊)
https://b.tiles.mapbox.com/v3/osmbuildings.kbpalbpk/{z}/{x}/{y}.png

黑色底圖:
https://a.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png

需要token:
6、Mapbox
衛星圖:
https://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.png?access_token=

街道圖:
https://a.tiles.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token=

帶區划黑底:
https://a.tiles.mapbox.com/v4/mapbox.dark/{z}/{x}/{y}.png?access_token=

7、天地圖(http://lbs.tianditu.gov.cn/server/MapService.html)
影像圖:(z>=1)
https://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=

矢量底圖:(z>=1)
https://t0.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=9a516b0f2a8179bb68f73172cff4bd22

注記:(z>=1)
https://t2.tianditu.com/cia_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cia&tileMatrixSet=w&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&tk=

8、BingMap

https://ecn.t0.tiles.virtualearth.net/tiles/a1.jpeg?g=7234
https://ecn.t0.tiles.virtualearth.net/tiles/a13.jpeg?g=7234
https://ecn.t0.tiles.virtualearth.net/tiles/a130.jpeg?g=7234
從Level1開始,g=7234/100/-10……為任意正負整數

官網申請Key后,cesium中訪問方式:
1 new Cesium.BingMapsImageryProvider({
2 url: 'https://dev.virtualearth.net',
3 key: bingmapToken,
4 mapStyle: Cesium.BingMapsStyle.AERIAL
5 })
原文鏈接:Cesium 在線地圖訪問總結
其它鏈接:Cesium學習筆記(三): 圖像層(Imagery Layers)和地形(Terrain)
