|
|
@ -62,6 +62,8 @@ |
|
|
|
@clickFeature="clickMap" |
|
|
|
:showIconLayer="true" |
|
|
|
:showPolygonLayer="true" |
|
|
|
:showPolIconLayer="true" |
|
|
|
:areaScale="0.1" |
|
|
|
:clickType="'popup'" |
|
|
|
:isAddOpenlay="true"></screen-map> |
|
|
|
</div> |
|
|
@ -369,8 +371,9 @@ export default { |
|
|
|
if (item.coordinates && item.coordinates.length > 0) { |
|
|
|
if (!this.isRepeatItem(item.name)) { |
|
|
|
let colorIndex = index < polygonColorArray.length ? index : 0 |
|
|
|
item.fillColor = transparent, |
|
|
|
item.color = polygonColorArray[colorIndex] |
|
|
|
item.fillColor = 'rgba(0, 229, 237, 0.16)' |
|
|
|
item.color = '#00E5ED' |
|
|
|
// item.color = polygonColorArray[colorIndex] |
|
|
|
subPolygonList.push(item) |
|
|
|
} |
|
|
|
} |
|
|
@ -456,7 +459,10 @@ export default { |
|
|
|
if (this.isfirstInit) { |
|
|
|
// this.agencyInfo.level = 'agency' |
|
|
|
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray |
|
|
|
this.$refs.map.loadMap(this.agencyInfo, this.polygonList, null, this.distributionsList, this.iconUrlArray, null) |
|
|
|
const polygonIconArray = [ |
|
|
|
'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/a219130b6bc74b0b80b5ddb0fce0892a.png', |
|
|
|
] |
|
|
|
this.$refs.map.loadMap(this.agencyInfo, this.polygonList, polygonIconArray, this.distributionsList, this.iconUrlArray, null) |
|
|
|
} else { |
|
|
|
this.$refs.map.refreshMap(this.agencyInfo, this.polygonList, this.distributionsList, false) |
|
|
|
} |
|
|
@ -464,10 +470,11 @@ export default { |
|
|
|
|
|
|
|
// 点击项目 |
|
|
|
async clickMap (feature) { |
|
|
|
if (feature.values_.coordinates && feature.values_.coordinates.length > 0) { |
|
|
|
await this.loadOrgData(feature.values_.level, feature.values_.id) |
|
|
|
this.loadMap() |
|
|
|
} |
|
|
|
// 点击显示下级区域 |
|
|
|
// if (feature.values_.coordinates && feature.values_.coordinates.length > 0) { |
|
|
|
// await this.loadOrgData(feature.values_.level, feature.values_.id) |
|
|
|
// this.loadMap() |
|
|
|
// } |
|
|
|
console.log('标注信息', feature.values_.properties) |
|
|
|
if (!feature.values_.properties) { |
|
|
|
return |
|
|
|