Browse Source

地图zoom

master
jiangyy 3 years ago
parent
commit
3fd8759694
  1. 2
      src/views/modules/visual/basicinfo/basicInfoMain.vue
  2. 4
      src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue
  3. 8
      src/views/modules/visual/components/screen-map/index.vue
  4. 4
      src/views/modules/workSys/mapConfig.vue

2
src/views/modules/visual/basicinfo/basicInfoMain.vue

@ -782,6 +782,8 @@ const vueGis = {
this.zoom = 13 this.zoom = 13
} else if (agencyLevel === 'community') { } else if (agencyLevel === 'community') {
this.zoom = 14 this.zoom = 14
} else {
this.zoom = 12
} }
}, },

4
src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue

@ -1613,8 +1613,8 @@ const vueGis = {
this.zoom = 13 this.zoom = 13
} else if (agencyLevel === 'community') { } else if (agencyLevel === 'community') {
this.zoom = 14 this.zoom = 14
}else{ } else {
this.zoom = 11 this.zoom = 12
} }
}, },

8
src/views/modules/visual/components/screen-map/index.vue

@ -422,7 +422,7 @@ const vueGis = {
// imgSize: [32, 32], // imgSize: [32, 32],
// scale: 0.5, // scale: 0.5,
// src: oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex] || this.iconUrlArray[0] || this.iconUrlArray[0] // 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) // text: createTextStyle(oneIcon)
}); });
@ -627,6 +627,8 @@ const vueGis = {
this.zoom = 13 this.zoom = 13
} else if (level === 'community') { } else if (level === 'community') {
this.zoom = 14 this.zoom = 14
} else {
this.zoom = 12
} }
}, },
@ -679,9 +681,9 @@ const vueGis = {
map.addLayer(polygonLayer) 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 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 { } else {
map.addInteraction(select); map.addInteraction(select);
} }
}, },

4
src/views/modules/workSys/mapConfig.vue

@ -622,8 +622,8 @@ const vueGis = {
this.zoom = 13 this.zoom = 13
} else if (agencyLevel === 'community') { } else if (agencyLevel === 'community') {
this.zoom = 14 this.zoom = 14
}else{ } else {
this.zoom = 11 this.zoom = 12
} }
}, },

Loading…
Cancel
Save