Browse Source

Merge branch 'dev_shequzhili' into dev

feature
ZhaoTongYao 3 years ago
parent
commit
b54fcd2bf4
  1. 7
      src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue
  2. 8
      src/views/modules/visual/components/screen-map/index.vue

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

@ -447,11 +447,11 @@ export default {
// //
loadMap () { loadMap () {
if (this.isfirstInit) { if (this.isfirstInit) {
this.agencyInfo.level = 'agency' // this.agencyInfo.level = 'agency'
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray //mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray
this.$refs.map.loadMap(this.agencyInfo, this.polygonList, null, this.distributionsList, this.iconUrlArray, null) this.$refs.map.loadMap(this.agencyInfo, this.polygonList, null, this.distributionsList, this.iconUrlArray, null)
} else { } else {
this.$refs.map.refreshMap(this.polygonList, this.distributionsList) this.$refs.map.refreshMap(this.agencyInfo, this.polygonList, this.distributionsList)
} }
}, },
@ -613,6 +613,9 @@ export default {
if (!this.agencyInfo.level) { if (!this.agencyInfo.level) {
this.agencyInfo.level = 'street' this.agencyInfo.level = 'street'
} }
if (!this.agencyInfo.agencyLevel) {
this.agencyInfo.agencyLevel = 'street'
}
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }

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

@ -265,9 +265,15 @@ const vueGis = {
this.polygonArray = [] this.polygonArray = []
this.polygonArray = polygonArray this.polygonArray = polygonArray
this.iconArrays = iconArrays this.iconArrays = iconArrays
if (iconSource) {
iconSource.clear() iconSource.clear()
}
if (polygonSource) {
polygonSource.clear() polygonSource.clear()
}
if (polIconSource) {
polIconSource.clear() polIconSource.clear()
}
this.initPolIconLayer() this.initPolIconLayer()
if (this.showPolygonLayer) { if (this.showPolygonLayer) {
@ -608,7 +614,7 @@ const vueGis = {
}) })
}), }),
new Style({ new Style({
// text: createTextStyle(feature) // zty 2022.05.19 // text: createTextStyle(feature) // zhaotongyao 2022.05.19
}) })
]; ];
styles['MultiPolygon'] = styles['Polygon']; styles['MultiPolygon'] = styles['Polygon'];

Loading…
Cancel
Save