底图初始化底图在超图在线调试,可以把影像图和地形图都加载进来。在项目中使用了官网下载的最新的JS,还是不能加载。请问有哪方面需要注意的吗?
var url = "http://localhost:8080/geoserver/gwc/service/wms"
var viewer= new Cesium.Viewer('cesiumContainer',{
infoBox: false,
homeButton : true,
terrainProvider : new Cesium.CesiumTerrainProvider({
url : "http://gisserver:8090/iserver/services/3D-HZ_DEM/rest/realspace/datas/DEM",
isSct : true//地形服务源自SuperMap iServer发布时需设置isSct为true
}),
});
viewer.scene.imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
enablePickFeatures: false,
url: url,
credit: "wms服务",
layers: "DGSYS:HZ_HD_YX",
tilingScheme: new Cesium.WebMercatorTilingScheme()
}));
viewer.scene.camera.setView({//-2761424.4125174917, y: 4763112.92386077, z: 3220522.814941856
destination : new Cesium.Cartesian3(-2761424.4125174917,4763112.92386077,3220522.814941856),//new Cesium.Cartesian3.fromDegrees(120.10480284690853, 30.329633910366283,20.00),//new Cesium.Cartesian3.fromDegrees(120.118517204,30.32907067,533.445971240632),
orientation : {
heading : 0.35642603136979467,
pitch : -0.5327750518589145,
roll : 6.283185307170665
}
});