fix:增加线段点击事件

This commit is contained in:
2025-01-08 09:32:30 +08:00
parent 8b9b217cec
commit 4371111931
2 changed files with 6 additions and 6 deletions
+2 -4
View File
@@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-14 10:46:23
* @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2025-01-02 16:17:20
* @LastEditTime: 2025-01-07 17:07:28
* @FilePath: \znxjxt-ui\src\components\map\fssm-map.vue
* @Description: 公共地图
-->
@@ -428,9 +428,7 @@ export default {
this.$emit("map-moveend", zoom);
});
// 图层选择事件
this.selectSingClick = new Select({
style: null,
});
this.selectSingClick = new Select();
map.addInteraction(this.selectSingClick);
this.selectSingClick.on("select", (e) => {
this.$emit("feature-select", e);