| | |
| | | // 添加编辑点图层 |
| | | this.emitPointLayer = new global.DC.VectorLayer('emitPointLayer') |
| | | global.viewer.addLayer(this.emitPointLayer) |
| | | |
| | | |
| | | // global.viewer.scene.globe.depthTestAgainstTerrain = true |
| | | } |
| | | |
| | | // draw执行这个 |
| | |
| | | this.terminateShape() |
| | | } |
| | | |
| | | getLastEventData () { |
| | | return this.lastEventData |
| | | } |
| | | |
| | | terminateShape () { |
| | | this.activeShapePoints.pop() |
| | | |
| | |
| | | |
| | | // this.EditMoveCenterPositoin = this.Cesium.Cartesian3.fromDegrees(this.drawCompletePosition[this.drawCompletePosition.length - 1].lng + 200 * lngOneM, this.drawCompletePosition[this.drawCompletePosition.length - 1].lat + 200 * latOneM, 0) |
| | | |
| | | // global.viewer.scene.globe.depthTestAgainstTerrain = true |
| | | |
| | | |
| | | // this.createEditMoveCenterEntity() |
| | | } else { |
| | |
| | | ) |
| | | }) |
| | | |
| | | |
| | | // console.log(polygon, 999) |
| | | |
| | | 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) |
| | | } |