优化一些 周六的内容

This commit is contained in:
mmc
2026-09-14 09:12:40 +08:00
parent 65aa966606
commit e4dffc7ff9
7 changed files with 33 additions and 31 deletions

View File

@@ -335,12 +335,12 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine,
polygonRef.current = null;
} catch (e) { }
}
if (planLineRef.current) {
try {
viewer.entities.remove(planLineRef.current);
planLineRef.current = null;
} catch (e) { }
}
//if (planLineRef.current) {
// try {
// viewer.entities.remove(planLineRef.current);
// planLineRef.current = null;
// } catch (e) { }
//}
const validPoints = points?.filter(p => {