Files
osmWorkflow/.trellis/tasks/08-05-cesium-traffic-signals/implement.md

21 lines
1000 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 实施计划Cesium 路口信号灯可视化
1. 从现有停止线和路口面建立稳定的信号锚点生成器,输出区域局部坐标、朝向、路口与相位组。
2. 将锚点 JSON 作为 preview 的可选支持文件写入区域输出与 preview manifest不触及主 GLB。
3. 在 Cesium 运行时加载可选锚点,构造立杆、灯头、红黄绿灯珠,并以统一相位时钟更新状态。
4. 添加 Signals 显示开关和诊断摘要,保持加载降级语义与既有 Controls 的布局。
5. 为锚点推导和预览配置/运行时编写针对性测试;构建目标区域并人工核对位置、朝向与相位。
## 验证
```bash
npm run test:preview-assets
node --check scripts/lib/cesium-preview.js
npm run build:area -- --config config/areas/nantaizi-lake-innovation-valley.json --stages preview
git diff --check
```
## 回退
删除信号锚点的 preview 输出与浏览器加载代码QGIS、GLB、车辆路线和原有预览功能不受影响。