xx
This commit is contained in:
@@ -189,7 +189,6 @@ export default function CesiumMap({ realtimePosition, realtimeType, pathPoints =
|
||||
}
|
||||
return;
|
||||
}
|
||||
console.log(points, "4324345")
|
||||
const validPoints = points.filter(p => {
|
||||
|
||||
const lon = Number(p.lng);
|
||||
@@ -229,7 +228,6 @@ export default function CesiumMap({ realtimePosition, realtimeType, pathPoints =
|
||||
// ======================
|
||||
// 🚀 非实时模式 -> 自动飞到轨迹
|
||||
// ======================
|
||||
console.log('=== drawTrackLine ===', { points, validPoints, isRealtimeMode });
|
||||
if (!isRealtimeMode) {
|
||||
|
||||
let minLon = 180, maxLon = -180;
|
||||
@@ -245,7 +243,6 @@ export default function CesiumMap({ realtimePosition, realtimeType, pathPoints =
|
||||
|
||||
// 单个点
|
||||
if (validPoints.length === 1) {
|
||||
console.log('=== drawTrackLine1111 ===', { points, validPoints, isRealtimeMode });
|
||||
|
||||
|
||||
const p = validPoints[0];
|
||||
@@ -261,7 +258,6 @@ export default function CesiumMap({ realtimePosition, realtimeType, pathPoints =
|
||||
viewer.scene.requestRender();
|
||||
|
||||
} else {
|
||||
console.log('=== drawTrackLine2222 ===', { points, validPoints, isRealtimeMode });
|
||||
|
||||
|
||||
const rectangle = Cesium.Rectangle.fromDegrees(
|
||||
|
||||
Reference in New Issue
Block a user