Browse Source

Merge branch 'dec_map_bug'

master
jianjun 3 years ago
parent
commit
b028901ebd
  1. 6
      src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue
  2. 20
      src/views/modules/workSys/mapConfig.vue

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

@ -1613,6 +1613,8 @@ const vueGis = {
this.zoom = 13
} else if (agencyLevel === 'community') {
this.zoom = 14
}else{
this.zoom = 11
}
},
@ -1827,7 +1829,7 @@ export default vueGis;
.ol-overlaycontainer-stopevent {
display: none;
}
</style>
</style>
<style lang="scss" scoped>
.popTitle {
@ -1954,4 +1956,4 @@ export default vueGis;
// color: rgba(1, 17, 104, 1);
color: #fff;
}
</style>
</style>

20
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°33E135°05E
// 3°51N53°33N
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;
}
</style>
</style>
<style>
.ol-overlaycontainer-stopevent {
display: none;
}
</style>
</style>

Loading…
Cancel
Save