From 5e34acef0ba07353d7860d09bf6045fccca3ea7a Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Fri, 21 Apr 2023 16:33:58 +0800
Subject: [PATCH] 1
---
src/components/map/index.vue | 40 +++++++++++++++++++++-------------------
1 files changed, 21 insertions(+), 19 deletions(-)
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index f3dd977..3a699a2 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -38,7 +38,6 @@
</div>
</el-tooltip>
-
<div class="image-switch-img-btn" v-show="showImgBtn">
<div class="layer-change-box">
<div class="title">
@@ -542,19 +541,20 @@
// 重写定位方法
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 = '初始化位置'
})
},
@@ -826,16 +826,18 @@
// 切换首页显示隐藏
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')
@@ -1227,7 +1229,7 @@
* @param {*}
*/
showThreeDimensions (positions, minHeight, maxHeight) {
- console.log('showThreeDimensions')
+ console.log('showThreeDimensions--map')
if (curPolygon != null) {
global.viewer.scene.primitives.remove(curPolygon)
curPolygon = null
--
Gitblit v1.9.3