shuishen
2023-04-21 85874a6cb16fa71f6c2f1cf1e9dea2fb89783313
src/components/map/index.vue
@@ -296,6 +296,8 @@
            that.switchImg()
            // 地形数据添加
            this.addTerrain()
            that.addTerrain()
            // 外网
@@ -540,6 +542,7 @@
        // 重写定位方法
        const homeCenter = [117.99311892441567, 28.46938164123123]
        this.$nextTick(() => {
            console.log('dc-zoom-controller', document.querySelector('.dc-zoom-controller'))
            document.querySelector('.dc-zoom-controller').children[1].onclick =
                function () {
                    that.$EventBus.$emit('toPosition', {
@@ -1224,6 +1227,7 @@
        * @param {*} 
        */
        showThreeDimensions (positions, minHeight, maxHeight) {
            console.log('showThreeDimensions')
            if (curPolygon != null) {
                global.viewer.scene.primitives.remove(curPolygon)
                curPolygon = null