| | |
| | | /** |
| | | * 固废 |
| | | */ |
| | | |
| | | const WasteSolidIndex = require('@components/BaseNav/WasteSolid/WasteSolidIndex').default |
| | | // 区分不同类型 使用不同img |
| | | const defaultImg = '/assets/images/map/solidwaste/voc.png' |
| | | const setting = '/assets/images/map/solidwaste/gf_green2.png' |
| | |
| | | const AnimalService = require('../service/AnimalService').default |
| | | |
| | | // const publicBounced = require('../../BaseNav/PublicBounced/PublicBounced').default |
| | | const PublicVideo = require('../../BaseNav/PublicVideo').default |
| | | |
| | | module.exports = function () { |
| | | /** |
| | |
| | | // 定义类型 用来区分数据的不同 1.接口接口数据来进行数据的判断 2.根据数据类型的不同,进行不同类型的图片显示 |
| | | const judgeValue = getSolidWasteData[i].StorageQty |
| | | var iconUrl = this.differentTypes(judgeValue) |
| | | |
| | | // console.log(getSolidWasteData[i].Latitude, getSolidWasteData[i].Longitude) |
| | | // console.log(getSolidWasteData[i]) |
| | | const marker = L.marker([positionX, positionY], { |
| | | totransferData: getSolidWasteData[i], |
| | | icon: L.icon({ |
| | |
| | | iconAnchor: [15, 15] |
| | | }) |
| | | }) |
| | | // console.log(L.icon) |
| | | // console.log(iconUrl) |
| | | // console.log(marker) |
| | | layer.addLayer(marker) |
| | | } |
| | | } |
| | |
| | | this.setPanTo(e.latlng, 300) |
| | | window.$layer.open({ |
| | | content: { |
| | | content: PublicVideo, // 组件 |
| | | content: WasteSolidIndex, // 组件 |
| | | parent: this, // 父组件 |
| | | data: { // 传递的参数 |
| | | info: this.info, |