diff --git a/src/views/modules/workSys/mapConfig.vue b/src/views/modules/workSys/mapConfig.vue index bc2f4d3d..1cfee9bc 100644 --- a/src/views/modules/workSys/mapConfig.vue +++ b/src/views/modules/workSys/mapConfig.vue @@ -622,6 +622,8 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 + }else{ + this.zoom = 11 } }, @@ -792,13 +794,23 @@ const vueGis = { //中国经纬度范围 // 经度范围:73°33′E至135°05′E 东经 // 纬度范围:3°51′N至53°33′N 北纬 + let aaa = this.polygonManullyString.replace(/\[/g, ',') + aaa = aaa.replace(/\]/g, ',') - const arrayString = this.polygonManullyString - let array = arrayString.split(/[, ()]/) + + let array = aaa.split(/[, ()]/) + // const arrayString = this.polygonManullyString + // let array = arrayString.split(",|(|)|[|]") console.log(array) let polygonStringResult = '' + // const arrayString = this.polygonManullyString + // let array = arrayString.split(/[, ()]/) + // console.log(array) + // let polygonStringResult = '' + + array.forEach(element => { let num = Number(element) if (num) { @@ -1139,9 +1151,9 @@ export default vueGis; .div_textarea { text-align: center; } - + +