| | |
| | | </div> |
| | | </el-tooltip> |
| | | |
| | | |
| | | <div class="image-switch-img-btn" v-show="showImgBtn"> |
| | | <div class="layer-change-box"> |
| | | <div class="title"> |
| | |
| | | // 重写定位方法 |
| | | 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', { |
| | | siteJd: homeCenter[0] + 0.046, |
| | | siteWd: homeCenter[1] - 0.36, |
| | | siteGd: 36000, |
| | | siteHeading: -3, |
| | | sitePitch: -45 |
| | | }) |
| | | } |
| | | // console.log('dc-zoom-controller', document.querySelector('.dc-zoom-controller')) |
| | | // if (document.querySelector('.dc-zoom-controller') == null) return |
| | | // document.querySelector('.dc-zoom-controller').children[1].onclick = |
| | | // function () { |
| | | // that.$EventBus.$emit('toPosition', { |
| | | // siteJd: homeCenter[0] + 0.046, |
| | | // siteWd: homeCenter[1] - 0.36, |
| | | // siteGd: 36000, |
| | | // siteHeading: -3, |
| | | // sitePitch: -45 |
| | | // }) |
| | | // } |
| | | |
| | | document.querySelector('.dc-zoom-controller .refresh svg title').innerHTML = '初始化位置' |
| | | // document.querySelector('.dc-zoom-controller .refresh svg title').innerHTML = '初始化位置' |
| | | }) |
| | | }, |
| | | |
| | |
| | | // 切换首页显示隐藏 |
| | | switchShowHomeContent () { |
| | | this.$store.commit('SET_ISSHOWHOMECONTENT', !this.$store.state.popupParams.isShowHomeContent) |
| | | |
| | | console.log(document.querySelector('.screen-full-btn'), 1111222) |
| | | console.log(document.querySelector('.dc-container'), 3333444) |
| | | console.log(document.querySelector('.dc-zoom-controller'), 3333444) |
| | | if (this.$store.state.popupParams.isShowHomeContent) { |
| | | if (document.querySelector('.dc-container .dc-zoom-controller').classList.contains('homebottom')) return |
| | | document.querySelector('.dc-container .dc-zoom-controller').classList.add('homebottom') |
| | | // if (document.querySelector('.dc-container .dc-zoom-controller').classList.contains('homebottom')) return |
| | | // document.querySelector('.dc-container .dc-zoom-controller').classList.add('homebottom') |
| | | document.querySelector('.screen-full-btn').classList.add('homebottom') |
| | | document.querySelector('.over-look-btn').classList.add('homebottom') |
| | | document.querySelector('.image-switch-icon-btn').classList.add('iconbottom') |
| | | } else { |
| | | if (!document.querySelector('.dc-container .dc-zoom-controller').classList.contains('homebottom')) return |
| | | document.querySelector('.dc-container .dc-zoom-controller').classList.remove('homebottom') |
| | | // if (!document.querySelector('.dc-container .dc-zoom-controller').classList.contains('homebottom')) return |
| | | // document.querySelector('.dc-container .dc-zoom-controller').classList.remove('homebottom') |
| | | document.querySelector('.screen-full-btn').classList.remove('homebottom') |
| | | document.querySelector('.over-look-btn').classList.remove('homebottom') |
| | | document.querySelector('.image-switch-icon-btn').classList.remove('iconbottom') |
| | |
| | | * @param {*} |
| | | */ |
| | | showThreeDimensions (positions, minHeight, maxHeight) { |
| | | console.log('showThreeDimensions') |
| | | console.log('showThreeDimensions--map') |
| | | if (curPolygon != null) { |
| | | global.viewer.scene.primitives.remove(curPolygon) |
| | | curPolygon = null |