Browse Source

增加地图zoom默认值

dev-烟台0301
jiangyy 3 years ago
parent
commit
1ca463f0bc
  1. 2
      src/views/modules/visual/basicinfo/basicInfoMain.vue
  2. 2
      src/views/modules/visual/communityGovern/fivelayers/mapIndex copy 2.vue
  3. 2
      src/views/modules/visual/communityGovern/fivelayers/mapIndex copy.vue
  4. 2
      src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.vue
  5. 6
      src/views/modules/visual/components/screen-map/index.vue

2
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
}
},

2
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
}
},

2
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
}
},

2
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
}
},

6
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);
}
},

Loading…
Cancel
Save