| | |
| | | import { getBuildClock } from "@/api/mobile/buildsClock/buildsClock"; // 楼栋详情 |
| | | import { mapGetters } from "vuex"; |
| | | |
| | | //baselayer |
| | | // baselayer |
| | | window.baselayer = null; |
| | | window.conBack = null; |
| | | window.butbut = null; |
| | |
| | | window.polygon = null; |
| | | window.doit2 = null; |
| | | window.wallLayer = null; |
| | | window.initViewer = null; //主方法 |
| | | window.initViewer = null; // 主方法 |
| | | |
| | | window.takes = null; |
| | | window.height1s = null; |
| | |
| | | ], |
| | | // areaLayer: null, |
| | | // mapCenter: [115.871863, 28.743861, 160.0], |
| | | mapCenter: [114.04062292 - 0.00035, 27.62666834 + 0.0025, 160.0], |
| | | // mapCenter: [114.04062292 - 0.00035, 27.62666834 + 0.0025, 160.0], |
| | | mapCenter: [116.35381525 - 0.00035, 27.95839468 + 0.0025, 160.0], |
| | | // 控制4层缩放 |
| | | // onelayerNum: 80, |
| | | // towlayerNum: 120, |
| | |
| | | // forlayerNum: null, |
| | | // intervallayerNum: 20, |
| | | // frislayertHeight: 120, // 默认高度 |
| | | onelayerNum: 110, |
| | | towlayerNum: 140, |
| | | threelayerNum: 170, |
| | | forlayerNum: 200, |
| | | onelayerNum: 40, |
| | | towlayerNum: 80, |
| | | threelayerNum: 120, |
| | | forlayerNum: 160, |
| | | |
| | | fivelayerNum: 230, |
| | | sixlayerNum: 260, |
| | | fivelayerNum: 200, |
| | | sixlayerNum: 240, |
| | | |
| | | intervallayerNum: 15, |
| | | frislayertHeight: 170, // 默认高度 |
| | | frislayertHeight: 160, // 默认高度 |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | // let height = Math.ceil(global.viewer.camera.positionCartographic.height); |
| | | // console.log(height); |
| | | }); |
| | | |
| | | // global.viewer.on(global.DC.SceneEventType.CAMERA_MOVE_END, (e) => { |
| | | global.viewer.on(global.DC.SceneEventType.CAMERA_CHANGED, (e) => { |
| | | // 相机移动最后参数 |
| | |
| | | global.viewer.zoomController.enable = true; |
| | | global.viewer.locationBar.enable = false; |
| | | global.viewer.distanceLegend.enable = false; |
| | | |
| | | // 判断默认维度 |
| | | // 原本默认是2.5d 改为3d默认时做出改变 |
| | | if (that.dimension == "2.5D") { |
| | |
| | | } |
| | | global.viewer.scene.screenSpaceCameraController._minimumZoomRate = 1000; |
| | | global.viewer.scene.screenSpaceCameraController._maximumZoomRate = 5906376272000; |
| | | //渲染后操作 |
| | | // 渲染后操作 |
| | | setTimeout(() => { |
| | | window.butbut(); |
| | | // return; |