|
@@ -29,16 +29,6 @@ export function proInit(pdistance = 300) {
|
|
|
});
|
|
|
|
|
|
projectionImage = new Cesium.ProjectionImage(scene);
|
|
|
- centerPoint = viewer.entities.add({
|
|
|
- id: 'cameraCenter',
|
|
|
- position: Cesium.Cartesian3.ZERO, // 初始位置设为当前视角中心,稍后更新
|
|
|
- point: {
|
|
|
- pixelSize: 10,
|
|
|
- color: Cesium.Color.YELLOW,
|
|
|
- outlineColor: Cesium.Color.BLACK,
|
|
|
- outlineWidth: 2
|
|
|
- }
|
|
|
- });
|
|
|
handler = new Cesium.DrawHandler(viewer, Cesium.DrawMode.Point);
|
|
|
|
|
|
handler.movingEvt.addEventListener(function (windowPosition) {
|
|
@@ -61,7 +51,6 @@ export function proInit(pdistance = 300) {
|
|
|
//通过该点设置视频投放对象的距离及方向
|
|
|
projectionImage.setDistDirByPoint([longitude, latitude, height]);
|
|
|
projectionImage.distance = pdistance;
|
|
|
- centerPoint.position = Cesium.Cartesian3.fromDegrees(longitude, latitude, 0)
|
|
|
|
|
|
}
|
|
|
// })
|