Skip to content

Commit 82c8473

Browse files
committed
【SDK】【Cesium】【修复编辑工具鼠标移动报错的BUG】
1 parent aaea7e7 commit 82c8473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/3DPlot/EditTool/EditTool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default class EditTool {
224224
this._plotLayer._viewer,
225225
event.startPosition
226226
);
227-
if(!mouseCartesian) return;
227+
if(!mouseCartesian || !prevMouseCartesian) return;
228228
//转化为经纬度坐标
229229
let mouseCartographic = Cesium.Cartographic.fromCartesian(mouseCartesian);
230230
//设置位置点高度

0 commit comments

Comments
 (0)