Skip to content

Commit 96f887d

Browse files
committed
【SDK】【service】【删除图元时删除控制点】
1 parent 8a3eefa commit 96f887d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/service/3DPlot/PlotLayer3D.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ class PlotLayer3D extends Observable {
118118
let plotLayer = this._getPlotLayer();
119119
if (plotLayer) {
120120
removeExtendLayersPlot(this._linkTool, plot);
121+
if(plot._positionBillboards){
122+
this._viewer.scene.primitives.remove(plot._positionBillboards);
123+
}
124+
if(plot._shapeBillboards){
125+
this._viewer.scene.primitives.remove(plot._shapeBillboards);
126+
}
121127
return plotLayer.remove(plot);
122128
}
123129
}

0 commit comments

Comments
 (0)