优化一加载 显示的地图内容
This commit is contained in:
@@ -640,7 +640,7 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine,
|
||||
!isNaN(Number(realtimePosition.lon)) &&
|
||||
!isNaN(Number(realtimePosition.lat));
|
||||
|
||||
const hasTrack = points && points.length > 0;
|
||||
const hasTrack = (points && points.length > 0) || polyPoints?.length > 0;
|
||||
|
||||
if (hasRealtime) return "realtime";
|
||||
if (hasTrack) return "track";
|
||||
|
||||
Reference in New Issue
Block a user