You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

49 lines
1.8 KiB

//加载 呼和浩特科技馆 3DTiles模型
var HHip = "http://47.104.11.54:8068/";
var HHlongitude = 111.67709183285903;
var HHlatitude = 40.8100732374135;
var HHheight = 10;
var HHheading = 0;
var HHTiles = new _Cesium.Cesium3DTileset({
url: HHip + "hhhtkjg/tileset.json"
});
viewer.scene.primitives.add(HHTiles);
HHTiles.readyPromise.then(function(argument) {
var position = _Cesium.Cartesian3.fromDegrees(HHlongitude, HHlatitude, HHheight);
var mat = _Cesium.Transforms.eastNorthUpToFixedFrame(position);
var rotationX = _Cesium.Matrix4.fromRotationTranslation(_Cesium.Matrix3.fromRotationZ(_Cesium.Math.toRadians(HHheading)));
_Cesium.Matrix4.multiply(mat, rotationX, mat);
HHTiles._root.transform = mat;
});
////加载 轨道智谷 3DTiles模型
//var GDZGip = 'http://47.104.11.54:8068/'
//var GDZGlongitude = 80.31663515860559;
//var GDZGlatitude = 41.15158698702691;
//var GDZGheight = 10.115068661327404;
//var GDZGheading = 0;
//var GDZGTiles = new _Cesium.Cesium3DTileset({
// url: GDZGip + 'GDZG/tileset.json'
//})
//viewer.scene.primitives.add(GDZG);
//GDZG.readyPromise.then(function(argument) {
// var position = _Cesium.Cartesian3.fromDegrees(longitude, latitude, height);
// var mat = _Cesium.Transforms.eastNorthUpToFixedFrame(position);
// var rotationX = _Cesium.Matrix4.fromRotationTranslation(_Cesium.Matrix3.fromRotationZ(_Cesium.Math.toRadians(heading)));
// _Cesium.Matrix4.multiply(mat, rotationX, mat);
// GDZG._root.transform = mat;
//});
//初始相机加载位置
setTimeout(function() {
setView(111.07064606657534,36.2530620465765,7278054.991043228,0,-90,0);
},100);
//飞行定位
setTimeout(function() {
flyTo(111.677276629729,40.80935584791807,302.4474185318917,0,-90,0,5);
},3000);
setTimeout(function() {
flyTo(111.67753371172782,40.808473904232045,15.51602961423858,349.8468,-4.1071,0,2);
},8800);