We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44bd039 commit b3548ddCopy full SHA for b3548dd
1 file changed
src/service/3DPlot/Draw/DrawPolyline.js
@@ -84,9 +84,6 @@ export default class DrawPolyline extends DrawObject {
84
that._isAdded = true;
85
that._plotLayer._isDrawing = true;
86
that._plotLayer._primitiveCollection.add(that._primitive);
87
- if(that._addedPlot){
88
- that._addedPlot(that._primitive);
89
- }
90
}
91
92
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);
+ let _primitive = this._primitive
125
this.disable();
+ if(this._addedPlot){
+ this._addedPlot(_primitive);
126
+ }
127
}, Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
128
129
this._handler = handler;
0 commit comments