Browse Source

地图缩放

shibei_master
jiangyy 4 years ago
parent
commit
33bba514ed
  1. 6
      src/views/modules/visual/components/screen-map/index.vue
  2. 6
      src/views/modules/workSys/mapConfig.vue

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

@ -450,11 +450,11 @@ const vueGis = {
// //
setZoom (level) { setZoom (level) {
if (level === 'district') { if (level === 'district') {
this.zoom = 12 this.zoom = 11
} else if (level === 'street') { } else if (level === 'street') {
this.zoom = 13 this.zoom = 12
} else if (level === 'community') { } else if (level === 'community') {
this.zoom = 14 this.zoom = 13
} }
}, },

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

@ -390,11 +390,11 @@ const vueGis = {
// //
setZoom (agencyLevel) { setZoom (agencyLevel) {
if (agencyLevel === 'district') { if (agencyLevel === 'district') {
this.zoom = 13 this.zoom = 12
} else if (agencyLevel === 'street') { } else if (agencyLevel === 'street') {
this.zoom = 14 this.zoom = 13
} else if (agencyLevel === 'community') { } else if (agencyLevel === 'community') {
this.zoom = 15 this.zoom = 14
} }
}, },

Loading…
Cancel
Save