File tree Expand file tree Collapse file tree 4 files changed +325
-256
lines changed
Expand file tree Collapse file tree 4 files changed +325
-256
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export default class DrawPoint extends DrawObject {
5252 if ( that . _addedPlot ) {
5353 that . _addedPlot ( that . _primitive ) ;
5454 }
55+ that . _plotLayer . _isDrawing = true ;
5556 const lnglat = CesiumUtil . cartesian3ToDegrees (
5657 viewer . scene . globe . ellipsoid ,
5758 worldPos
@@ -74,5 +75,6 @@ export default class DrawPoint extends DrawObject {
7475 this . _handler = null ;
7576 this . _isAdded = false ;
7677 this . m_coords = [ ] ;
78+ this . _plotLayer . _isDrawing = false ;
7779 }
7880}
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export default class DrawPolyline extends DrawObject {
7979 } ) ;
8080 that . _primitive . id = res . featureId ;
8181 that . _isAdded = true ;
82+ that . _plotLayer . _isDrawing = true ;
8283 that . _plotLayer . _primitiveCollection . add ( that . _primitive ) ;
8384 if ( that . _addedPlot ) {
8485 that . _addedPlot ( that . _primitive ) ;
@@ -134,5 +135,6 @@ export default class DrawPolyline extends DrawObject {
134135 this . _handler = null ;
135136 this . _isAdded = false ;
136137 this . m_coords = [ ] ;
138+ this . _plotLayer . _isDrawing = false ;
137139 }
138140}
You can’t perform that action at this time.
0 commit comments