| | |
| | | |
| | | module.exports = function () { |
| | | /** |
| | | * 返回marker对象数组 |
| | | * @param L leaflet对象 |
| | | */ |
| | | * 返回marker对象数组 |
| | | * @param L leaflet对象 |
| | | */ |
| | | this.init = async (layer, L) => { |
| | | // const SolidWasteIcon = this.SolidWasteIcon() |
| | | this.animalService = new AnimalService({ |
| | |
| | | offset: [0, 14], |
| | | direction: 'bottom', |
| | | className: 'company-bindTooltip' |
| | | }) |
| | | }).bindPopup('<div class="company-bindTooltip-hover"><h3>污染物产生统计</h3><ul>' + |
| | | '<li>生产设施:30(个)</li>' + |
| | | '<li>治理设施:30(个)</li>' + |
| | | '</ul></div>') |
| | | .on('mouseover', (e) => marker.openPopup()) |
| | | .on('mouseout', (e) => marker.closePopup()) |
| | | layer.addLayer(marker) |
| | | } |
| | | } |
| | | /* |
| | | * 点位鼠标移入弹框 |
| | | * */ |
| | | this.bindTooltip = (layer) => { |
| | | console.log(layer) |
| | | return '<div class="company-bindTooltip-hover"><h3>污染物产生统计</h3><ul>' + |
| | | '<li>生产设施:30(个)</li>' + |
| | | '<li>治理设施:30(个)</li>' + |
| | | '</ul></div>'// layer.options.test.name |
| | | } |
| | | /* |
| | | * 点位点击事件 |
| | | * |
| | | * */ |
| | | this.clickListener = (e) => { |
| | | // this.animalService.pulseEffect(e.latlng) |
| | | const dataValue = { |
| | | StoragePlaceId: e.layer.options.test.name |
| | | |
| | | /* |
| | | * 点位点击事件 |
| | | * |
| | | * */ |
| | | this.clickListener = (e) => { |
| | | // this.animalService.pulseEffect(e.latlng) |
| | | const dataValue = { |
| | | StoragePlaceId: e.layer.options.test.name |
| | | } |
| | | debugger |
| | | console.log(dataValue) |
| | | // return this.PublicBounced.$el |
| | | } |
| | | debugger |
| | | console.log(dataValue) |
| | | // return this.PublicBounced.$el |
| | | } |
| | | } |