吉安感知网项目-前端
shuishen
2026-02-05 936c54684b66fba6e3b947a57ecd1dc71d0bdcf2
feat:多边形编辑优化
1 files modified
5 ■■■■■ changed files
applications/drone-command/src/utils/cesium/shapeTools/edit/EditPolygonTool.js 5 ●●●●● patch | view | raw | blame | history
applications/drone-command/src/utils/cesium/shapeTools/edit/EditPolygonTool.js
@@ -88,10 +88,11 @@
    }
    handleMouseMove(movement) {
        const tooltipText = '拖动顶点编辑,拖动中点插入新点,右键删除顶点'
        if (!this.tooltip?.isVisible) {
            this.tooltip.show('拖动顶点编辑', movement.endPosition)
            this.tooltip.show(tooltipText, movement.endPosition)
        } else {
            this.tooltip.show('拖动顶点编辑')
            this.tooltip.show(tooltipText)
            this.tooltip.move(movement.endPosition)
        }
        if (!this.isDragging || this.draggedIndex < 0) return