Browse Source

多元主体分析中心点问题

shibei_master
jiangyy 3 years ago
parent
commit
7c551f0b5c
  1. 6
      src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue
  2. 14
      src/views/modules/visual/components/screen-map/index.vue

6
src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue

@ -451,7 +451,7 @@ export default {
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray
this.$refs.map.loadMap(this.agencyInfo, this.polygonList, null, this.distributionsList, this.iconUrlArray, null)
} else {
this.$refs.map.refreshMap(this.agencyInfo, this.polygonList, this.distributionsList)
this.$refs.map.refreshMap(this.agencyInfo, this.polygonList, this.distributionsList, false)
}
},
@ -708,7 +708,7 @@ export default {
color: #fff;
}
.card-left-title::after {
content: '';
content: "";
position: absolute;
top: 50%;
left: 20px;
@ -716,7 +716,7 @@ export default {
height: 12px;
box-sizing: border-box;
margin-top: -6px;
background: #2865FA;
background: #2865fa;
border-radius: 50%;
}
.card-wr-map {

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

@ -200,7 +200,9 @@ const vueGis = {
distanceMax: null,//
input_lat: null,
input_lon: null
input_lon: null,
isChangeCenter: true,//
}
},
async mounted () {
@ -259,12 +261,13 @@ const vueGis = {
},
//
async refreshMap (mapInfo, polygonArray, iconArrays) {
//:
async refreshMap (mapInfo, polygonArray, iconArrays, isChangeCenter) {
this.mapInfo = mapInfo
this.polygonArray = []
this.polygonArray = polygonArray
this.iconArrays = iconArrays
this.isChangeCenter = isChangeCenter
if (iconSource) {
iconSource.clear()
}
@ -511,6 +514,11 @@ const vueGis = {
},
//
setMapLocation () {
if (!this.isChangeCenter) {
return false
}
// debugger
if (!this.zoom) {
this.setZoom(this.mapInfo.agencyLevel)
}

Loading…
Cancel
Save