shuishen
2022-12-10 c0903b46a4cac7895851d2aeecefecb04c5cc071
src/utils/EntityDraw.js
@@ -244,10 +244,6 @@
        this.terminateShape()
    }
    getLastEventData () {
        return this.lastEventData
    }
    terminateShape () {
        this.activeShapePoints.pop()
@@ -292,7 +288,10 @@
            this.drawPolygonLayer.addOverlay(polygon)
            this.lastEventData = this.drawCompletePosition
            this.lastEventData = {
                type: 'polygon',
                data: this.drawCompletePosition
            }
            this.cb(this.lastEventData)
        }
@@ -366,7 +365,11 @@
        this.drawPolyLineGonLayer.addOverlay(polygon)
        this.lastEventData = coords
        this.lastEventData = {
            type: 'line',
            data: coords,
            lineData: this.drawCompletePosition
        }
        cb(this.lastEventData)
    }