From 3fd8759694e2a626c3e3e08dfc5f793ea6ba6497 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 8 Jul 2022 16:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BEzoom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/basicinfo/basicInfoMain.vue | 2 ++ .../visual/communityGovern/fivelayers/mapIndex.vue | 4 ++-- src/views/modules/visual/components/screen-map/index.vue | 8 +++++--- src/views/modules/workSys/mapConfig.vue | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/modules/visual/basicinfo/basicInfoMain.vue b/src/views/modules/visual/basicinfo/basicInfoMain.vue index 6f7b1938..4e23dc15 100644 --- a/src/views/modules/visual/basicinfo/basicInfoMain.vue +++ b/src/views/modules/visual/basicinfo/basicInfoMain.vue @@ -782,6 +782,8 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 + } else { + this.zoom = 12 } }, diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue index 194a4d76..6e2f0771 100644 --- a/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue +++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue @@ -1613,8 +1613,8 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 - }else{ - this.zoom = 11 + } else { + this.zoom = 12 } }, diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index 496f3e1c..f85284f8 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -422,7 +422,7 @@ const vueGis = { // imgSize: [32, 32], // scale: 0.5, // src: oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex] || this.iconUrlArray[0] || this.iconUrlArray[0] - src: (oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex]) || (oneIcon.index &&this.iconUrlArray[oneIcon.index]) || this.iconUrlArray[0] + src: (oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex]) || (oneIcon.index && this.iconUrlArray[oneIcon.index]) || this.iconUrlArray[0] }), // text: createTextStyle(oneIcon) }); @@ -627,6 +627,8 @@ const vueGis = { this.zoom = 13 } else if (level === 'community') { this.zoom = 14 + } else { + this.zoom = 12 } }, @@ -679,9 +681,9 @@ const vueGis = { map.addLayer(polygonLayer) if (this.$route.path == '/main-shuju/visual-communityGovern-duoyuanfuwu-duoyuanfuwufenxi' || this.$route.path == '/main-shuju/visual-communityParty-gridParty' || this.$route.path == '/main-shuju/visual-communityParty-community') { // 2022.6.9 网格党建平面图 联建单位分析页面 点位点击以后会消失,屏蔽这段代码以后可以解决 - console.log('去掉默认点击') + console.log('去掉默认点击') } else { - map.addInteraction(select); + map.addInteraction(select); } }, diff --git a/src/views/modules/workSys/mapConfig.vue b/src/views/modules/workSys/mapConfig.vue index 96716469..23248fd2 100644 --- a/src/views/modules/workSys/mapConfig.vue +++ b/src/views/modules/workSys/mapConfig.vue @@ -622,8 +622,8 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 - }else{ - this.zoom = 11 + } else { + this.zoom = 12 } },