修复
This commit is contained in:
@@ -1096,12 +1096,7 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine,
|
||||
planLineRef.current = null;
|
||||
}
|
||||
|
||||
if (polygonRef.current) {
|
||||
viewer.entities.remove(polygonRef.current);
|
||||
|
||||
|
||||
polygonRef.current = null;
|
||||
}
|
||||
|
||||
viewer.scene.requestRender();
|
||||
}
|
||||
prevIfClearPlanLine.current = ifClearPlanLine;
|
||||
|
||||
Reference in New Issue
Block a user