1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| import mapClick from "./mapClick";
| import store from "@/store";
| import configTool from "@/assets/js/tool/configTool";
| const mapView = {
| init() {
| window.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", {
| printLog: false,
| });
| window.Viewer = earthCtrl._Viewer;
| window.Cesium = SmartEarth.Cesium;
| earthCtrl.camera.stop(); //取消飞行状态
| // 关闭深度检测
| Viewer.scene.globe.depthTestAgainstTerrain = false;
| // 飞行定位
| configTool.setMapFly({
| lon: 120.862482,
| lat: 44.7786221,
| alt: 300000,
| heading: 6.283185307179586,
| pitch: -1.5707963267948966,
| roll: 0,
| });
| // 120.923461, 44.232539
| mapClick.Init();
| },
| };
| export default mapView;
|
|