Cesium扫描圆柱
let position = Cesium.Cartesian3.fromDegrees(108, 32, 0);
let cylinderGlow = new xt3d.AdvancedPlugin.CylinderGlow(this.viewer, position, {
radius: 1300, //半径
cylinderHeight: 10000, //高度
fillColor: Cesium.Color.YELLOW, //填充色
bottomCircleHeight: 10, //底部圆高度
bottomInnerCircleColor: Cesium.Color.YELLOW, //内圆颜色
bottomOuterCircleColor: Cesium.Color.YELLOW, //外圆颜色
TexureUrl: "/data.xt3d.cn/assets/images/cylinderglow" //材质路径
});
默认视角(adimation效果)
setView() {
let flyToOpts = {
destination: {
x: -2478920.801925492,
y: 4825730.518405389,
z: 3347542.8711580094
},
orientation: {
heading: 2.537181922085081,
pitch: -0.47972457133242763,
roll: 0.0021918829067129053
},
duration: 0
};
this.viewer.scene.camera.flyTo(flyToOpts);
},