From 4f55f7d94198eca8eba9ae6b85af19a07cac2f79 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 29 Apr 2022 17:23:55 +0800
Subject: [PATCH] 内容修改
---
src/components/leftNav/index.vue | 35 +++++++++++++++++++++++++++++------
1 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/src/components/leftNav/index.vue b/src/components/leftNav/index.vue
index e643fbc..b76d1d0 100644
--- a/src/components/leftNav/index.vue
+++ b/src/components/leftNav/index.vue
@@ -40,7 +40,8 @@
...mapGetters([
'closeMapClick', // 关闭地图点击,防止新增标签误触
'addIconsLayerIconPopup', // 传送关闭编辑窗口,刷新标签数据
- 'calenderShow'
+ 'calenderShow',
+ 'twoOrThree'
])
},
data () {
@@ -137,6 +138,28 @@
}
},
immediate: true
+ },
+ twoOrThree: {
+ handler (newData, oldData) {
+ if (newData == '三 维') {
+ for (const key in LeftNavLayer) {
+ if (LeftNavLayer[key] != null) {
+ LeftNavLayer[key].eachOverlay((item) => {
+ item.position = new global.DC.Position(Number(item.position.lng), Number(item.position.lat), 0)
+ })
+ }
+ }
+ } else {
+ for (const key in LeftNavLayer) {
+ if (LeftNavLayer[key] != null) {
+ LeftNavLayer[key].eachOverlay((item) => {
+ item.position = new global.DC.Position(Number(item.position.lng), Number(item.position.lat), 150)
+ })
+ }
+ }
+ }
+ },
+ immediate: true
}
},
methods: {
@@ -155,7 +178,7 @@
${item.mechanismname}
</div>
<div class="tag-angle-content">
- <img src="https://map.hit.edu.cn/images/tarrow_xq.png">
+ <img src="/img/icon/tarrow_xq.png">
</div>
</div>
`
@@ -259,7 +282,7 @@
${item.mechanismname}
</div>
<div class="tag-angle-content">
- <img src="https://map.hit.edu.cn/images/tarrow_xq.png">
+ <img src="/img/icon/tarrow_xq.png">
</div>
</div>
`
@@ -291,7 +314,7 @@
${item.roadname}
</div>
<div class="way-sign-box">
- <img src="https://map.hit.edu.cn/images/roadsign3.png">
+ <img src="/img/icon/roadsign3.png">
</div>
</div>
`
@@ -449,10 +472,10 @@
</div>
<div class="park-sign-box">
<div>
- <img src="https://map.hit.edu.cn/images/p-biao.png" width="14" height="14" alt="${item.mechanismname}" title="${item.mechanismname}">
+ <img src="/img/icon/p-biao.png" width="14" height="14" alt="${item.mechanismname}" title="${item.mechanismname}">
</div>
<div>
- <img src="https://map.hit.edu.cn/images/roadsign.png" width="5" height="21">
+ <img src="/img/icon/roadsign.png" width="5" height="21">
</div>
</div>
</div>
--
Gitblit v1.9.3