| | |
| | | * 环境风险源 |
| | | */ |
| | | // 信息组件 |
| | | const RiskSourceIndex = require('../../../components/base-page/WasteSolid/WasteSolidIndex.vue').default |
| | | const RiskSourceIndex = require('../../base-page/RiskSource/RiskSourceIndex.vue').default |
| | | const riskRed = '/assets/images/map/environmentRisk/risk_red.png' |
| | | const riskSandybrown = '/assets/images/map/environmentRisk/risk_sandybrown.png' |
| | | const riskYellow = '/assets/images/map/environmentRisk/risk_yellow.png' |
| | |
| | | const data = result[config.level] // 此处级别对应data数组下标,作为参数取数标识 |
| | | for (let i = 0; i < data.length; i++) { |
| | | const postion = [data[i].Latitude, data[i].Longitude] // 坐标 |
| | | const iconUrl = this.riskIconUrl(data[i].iconType) // 风险源图标 |
| | | const iconUrl = this.riskIconUrl(data[i].riskLevel) // 风险源图标 |
| | | const marker = L.marker(postion, { |
| | | totransferData: data[i], |
| | | icon: L.icon({ |
| | |
| | | * @param e |
| | | */ |
| | | this.clickListener = (e) => { |
| | | // 点击marker的pulse()光波 |
| | | // 脉冲效果 |
| | | this.animalService.pulseEffect(e.latlng) |
| | | /* flyTo()弹出框平移事件 */ |
| | | // 信息弹窗平移 |
| | | setPanTo(e.latlng, 200) |
| | | // 弹框标题 |
| | | const title = e.layer.options.totransferData.Name |
| | |
| | | comp: RiskSourceIndex, // 组件 |
| | | parent: this, // 父组件 |
| | | data: { // 传递的参数 |
| | | storagePlaceId: e.layer.options.totransferData.StoragePlaceId |
| | | riskSourceId: e.layer.options.totransferData.no |
| | | } |
| | | }, |
| | | title: title // 标题 |