fix:增加删除地图选中事件对象

This commit is contained in:
2025-04-14 10:16:05 +08:00
parent 7d6f503c77
commit 6275e6a29e
2 changed files with 19 additions and 3 deletions
+13 -1
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-03-31 13:02:21
* @LastEditTime: 2025-04-14 09:54:46
* @FilePath: \znxjxt-ui\src\components\map\fssm-map.vue
* @Description: 公共地图
-->
@@ -541,6 +541,18 @@ export default {
this.selectSingClick.getFeatures().clear();
},
/**
* @description: 清除地图上的选中事件
* @return {void}
*/
clearSelectInteraction() {
if (this.selectSingClick) {
const map = this.instance.get("map");
map.removeInteraction(this.selectSingClick);
this.selectSingClick = null;
}
},
/**
* @description: 绘制多边形地图
* @return {*}