摘要:
/** 往 polygon 中添加一个洞 */ function addHole(polygon: T.Polygon) { const handler = new T.PolygonTool(map) handler.open() handler.addEventListener('draw', 阅读全文
posted @ 2025-09-13 22:23
东啊東
阅读(43)
评论(0)
推荐(0)
摘要:
天地图的编辑不支持删除编辑点的操作,于是研究写了一个。 // 使用 lodash 的防抖函数,防止双击时触发两次 const removeDotEventListener = debounce((e: T.MapEvent) => { // 获取被点击的目标 // @ts-ignore const 阅读全文
posted @ 2025-09-13 22:03
东啊東
阅读(68)
评论(0)
推荐(0)

浙公网安备 33010602011771号