https://blog.csdn.net/wo_buzhidao/article/details/82500390yi
一些有用的底图(地图和地形)公共服务地址
export const layerData= [
{
name: "天地图",
address: "http://t0.tianditu.gov.cn/DataServer?x={x}&y={y}&l={z}&T=img_w&tk=6c4e74345073b248fdf10ba82480558e",
},
{
name: "街道图",
address: "https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}"
},
{
name: "电子地图",
address: "https://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}"
},
{
name: "灰色图",
address: "https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer/tile/{z}/{y}/{x}"
},
{
name: "谷歌地图",
address: "https://mt1.google.cn/vt/lyrs=s&hl=zh-CN&x={x}&y={y}&z={z}&s=Gali"
},
{
name: "arcgis在线地图",
address: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
},
{
name: "高德地图",
address: "https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}"
},
{
name: "黑色地图",
address: "https://cesiumjs.org/blackmarble"
},
{
name: "腾讯地图",
address: "https://p2.map.gtimg.com/sateTiles/{z}/{sx}/{sy}/{x}_{reverseY}.jpg?version=229"
},
{
name: "高程地图",
address: "http://localhost:8900/proxy/http://192.168.13.32:8080/geoserver/gwc/service/wms",
},
{
name: "高程亮点图",
address: "https://api.maptiler.com/tiles/terrain-quantized-mesh/?key=8urAyLJIrn6TeDtH0Ubh",
},
{
name: "基础卫星影像",
address: "https://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",
},
{
name: "深色地图",
address: "http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}",
}
]
//加载底图服务+高程地形
//token去这里注册:https://cesium.com/ion/tokens
Cesium.Ion.defaultAccessToken = '你的token';
let viewer=window.viewer=new Cesium.Viewer('cesiumContainer',{//世界地形
terrainProvider:new Cesium.CesiumTerrainProvider({
url:Cesium.IonResource.fromAssetId(1),
requestWaterMask:true,
requestVertexNormals: true
})
})