吉安感知网项目-前端
chenyao
2026-02-06 58912a5c1dcd0b60ae29f9fe20da8c1359f764c4
Merge remote-tracking branch 'origin/master'
1 files modified
8 ■■■■ changed files
applications/drone-command/src/utils/cesium/shapeTools/draw/DrawPolygonTool.js 8 ●●●● patch | view | raw | blame | history
applications/drone-command/src/utils/cesium/shapeTools/draw/DrawPolygonTool.js
@@ -137,12 +137,18 @@
    handleMouseMove(movement) {
        if (!this.isDrawing) return
        const tipText = this.getTipText()
        if (!this.tooltip?.isVisible) {
            this.tooltip.show(tipText, movement.endPosition)
        } else {
            this.tooltip.show(tipText)
            this.tooltip.move(movement.endPosition)
        }
        if (this.positions.length === 0) return
        const position = this.getPositionFromScreen(movement.endPosition)
        if (!position) return
        this.lastMousePosition = position
        this.floatPosition = position
        this.tooltip.show(this.getTipText(), movement.endPosition)
    }
    getTipText() {