| | |
| | | this.terminateShape() |
| | | } |
| | | |
| | | getLastEventData () { |
| | | return this.lastEventData |
| | | } |
| | | |
| | | terminateShape () { |
| | | this.activeShapePoints.pop() |
| | | |
| | |
| | | |
| | | this.drawPolygonLayer.addOverlay(polygon) |
| | | |
| | | this.lastEventData = this.drawCompletePosition |
| | | this.lastEventData = { |
| | | type: 'polygon', |
| | | data: this.drawCompletePosition |
| | | } |
| | | |
| | | this.cb(this.lastEventData) |
| | | } |
| | |
| | | |
| | | this.drawPolyLineGonLayer.addOverlay(polygon) |
| | | |
| | | this.lastEventData = coords |
| | | this.lastEventData = { |
| | | type: 'line', |
| | | data: coords, |
| | | lineData: this.drawCompletePosition |
| | | } |
| | | |
| | | cb(this.lastEventData) |
| | | } |