|
@@ -144,21 +144,22 @@ export default {
|
|
|
handlerPoint.clear();
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.$nextTick(() => {
|
|
|
- // console.log(window.viewer, 99999);
|
|
|
- windowPosition = new Cesium.Cartesian2();
|
|
|
- scratchTiltFrame = new Cesium.Matrix4();
|
|
|
- scratchOldTransform = new Cesium.Matrix4();
|
|
|
- handlerPoint = new Cesium.DrawHandler(
|
|
|
- window.viewer,
|
|
|
- Cesium.DrawMode.Point
|
|
|
- );
|
|
|
- if (camera) {
|
|
|
- return;
|
|
|
- }
|
|
|
- camera = scene.camera;
|
|
|
- camera.flyCircleLoop = true;
|
|
|
- });
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // console.log(window.viewer, 99999);
|
|
|
+ // windowPosition = new Cesium.Cartesian2();
|
|
|
+ // scratchTiltFrame = new Cesium.Matrix4();
|
|
|
+ // scratchOldTransform = new Cesium.Matrix4();
|
|
|
+ // handlerPoint = new Cesium.DrawHandler(
|
|
|
+ // window.viewer,
|
|
|
+ // Cesium.DrawMode.Point
|
|
|
+ // );
|
|
|
+ // if (camera) {
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // viewer.scene.camera
|
|
|
+ // camera = scene.camera;
|
|
|
+ // camera.flyCircleLoop = true;
|
|
|
+ // });
|
|
|
|
|
|
this.init();
|
|
|
},
|