From 1ca463f0bc87bf4a15f042e6387fdc21da6d9918 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 8 Jul 2022 16:48:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9C=B0=E5=9B=BEzoom?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC?= 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 copy 2.vue | 2 ++ .../visual/communityGovern/fivelayers/mapIndex copy.vue | 2 ++ .../visual/communityGovern/fivelayers/mapIndex-baidu.vue | 2 ++ src/views/modules/visual/components/screen-map/index.vue | 6 +++--- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/views/modules/visual/basicinfo/basicInfoMain.vue b/src/views/modules/visual/basicinfo/basicInfoMain.vue index 6f7b19380..10f44d0af 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 = 11 } }, diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy 2.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy 2.vue index 7ee8f5f85..c3e357171 100644 --- a/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy 2.vue +++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy 2.vue @@ -1629,6 +1629,8 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 + } else { + this.zoom = 11 } }, diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy.vue index efc340ebf..e6a2ef607 100644 --- a/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy.vue +++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy.vue @@ -1637,6 +1637,8 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 + } else { + this.zoom = 11 } }, diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.vue index 049037cdb..8deefd534 100644 --- a/src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.vue +++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.vue @@ -1632,6 +1632,8 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 + } else { + this.zoom = 11 } }, diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index 766f61e70..b5120de89 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -628,7 +628,7 @@ const vueGis = { } else if (level === 'community') { this.zoom = 14 } else { - this.zoom = 12 + this.zoom = 11 } }, @@ -681,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); } },