From 1952516f71591d5ecf2ba955406cf2b735864bf2 Mon Sep 17 00:00:00 2001 From: ChenZeping <chenzeping> Date: 星期四, 29 四月 2021 16:19:24 +0800 Subject: [PATCH] 问题修改 --- src/components/LayerController/service/WfsLayerService.js | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/LayerController/service/WfsLayerService.js b/src/components/LayerController/service/WfsLayerService.js index 5ac8cb4..606d84a 100644 --- a/src/components/LayerController/service/WfsLayerService.js +++ b/src/components/LayerController/service/WfsLayerService.js @@ -63,7 +63,7 @@ }) }, onEachFeature: (feature, layer) => { - /* layer.bindPopup((layer) => { + layer.bindPopup((layer) => { this.popupComp.setDatas(layer) this.popupComp.setShow() return this.popupComp.$el @@ -72,12 +72,8 @@ 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) -- Gitblit v1.8.0