Skip to content

Commit 2b9685d

Browse files
author
zhaokai
committed
Merge branch 'webclient_plot' of github.com:MapGIS/WebClient-JavaScript into webclient_plot
2 parents 0bd23cd + 0b46f43 commit 2b9685d

File tree

4 files changed

+325
-256
lines changed

4 files changed

+325
-256
lines changed

src/service/3DPlot/Draw/DrawPoint.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

src/service/3DPlot/Draw/DrawPolyline.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)