| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 44bd039 commit b3548dd
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -84,9 +84,6 @@ export default class DrawPolyline extends DrawObject { | |||
| 84 | 84 | that._isAdded = true; | |
| 85 | 85 | that._plotLayer._isDrawing = true; | |
| 86 | 86 | that._plotLayer._primitiveCollection.add(that._primitive); | |
| 87 | - if(that._addedPlot){ | ||
| 88 | - that._addedPlot(that._primitive); | ||
| 89 | - } | ||
| 90 | 87 | } | |
| 91 | 88 | ||
| 92 | 89 | if(!that._handler){ | |
@@ -122,7 +119,11 @@ export default class DrawPolyline extends DrawObject { | |||
| 122 | 119 | handler.setInputAction((event) => { | |
| 123 | 120 | this.fireFinishEvent({ plotObj3D: this._primitive }); | |
| 124 | 121 | addExtendLayersPlot(this._plotLayer._linkTool, this._primitive); | |
| 122 | + let _primitive = this._primitive | ||
| 125 | 123 | this.disable(); | |
| 124 | + if(this._addedPlot){ | ||
| 125 | + this._addedPlot(_primitive); | ||
| 126 | + } | ||
| 126 | 127 | }, Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK); | |
| 127 | 128 | ||
| 128 | 129 | this._handler = handler; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments