| | |
| | | /** |
| | | * 加载业务数据图层 |
| | | * 加载wfs服务图层 |
| | | */ |
| | | import { STYLES } from '../../../conf/Constants' |
| | | import AjaxUtils from '../../../utils/AjaxUtils' |
| | |
| | | }) |
| | | }, |
| | | onEachFeature: (feature, layer) => { |
| | | const popupDatas = [] |
| | | const properties = feature.properties |
| | | popupDatas.push({ |
| | | title: properties.wellname || properties.devicename || properties.name, |
| | | name: feature.id, |
| | | content: properties |
| | | }) |
| | | layer.bindPopup((layer) => { |
| | | this.popupComp.setDatas(layer) |
| | | this.popupComp.setDatas(popupDatas) |
| | | this.popupComp.setShow() |
| | | return this.popupComp.$el |
| | | }, { |
| | |
| | | return name |
| | | } |
| | | } |
| | | |
| | | export default WfsLayerService |