| | |
| | | /** |
| | | * 加载业务数据图层 |
| | | * 加载wfs服务图层 |
| | | */ |
| | | import { STYLES } from '../../../conf/Constants' |
| | | import AjaxUtils from '../../../utils/AjaxUtils' |
| | |
| | | }) |
| | | }, |
| | | onEachFeature: (feature, layer) => { |
| | | /* layer.bindPopup((layer) => { |
| | | layer.bindPopup((layer) => { |
| | | this.popupComp.setDatas(layer) |
| | | this.popupComp.setShow() |
| | | return this.popupComp.$el |
| | |
| | | minWidth: 300, |
| | | closeButton: false, |
| | | autoClose: false |
| | | }) */ |
| | | layer.bindTooltip((layer) => this.tooltipListener(layer), { |
| | | direction: 'bottom', |
| | | offset: [0, 15], |
| | | sticky: true |
| | | }) |
| | | .bindTooltip((layer) => this.tooltipListener(layer), { direction: 'bottom', offset: [0, 15], sticky: true }) |
| | | .on('mouseover', (e) => this.mouseOverListener(e, layer)).on('mouseout', (e) => this.mouseOutListener(e, layer)) |
| | | } |
| | | }).addTo(this.layer) |