Appearance
航线渲染
该功能依赖 joCPL 提供的强大的航线规划算法实现;
如何使用
javascript
import { Viewer, RouteLayer } from "@jodvf/cesium-3d";
const viewer = new Viewer(container, {
location: false,
skyBox: false,
creditContainer: document.createElement("div"),
scene3DOnly: true
});
// 数据根据 joCPL 实现
fetch("./data/routePoint.json")
.then((r) => r.json())
.then((datas) => {
// 初始化图层
const routeLayer = new RouteLayer(viewer, {
datas,
heightAnomaly: [0, 10]
});
routeLayer.flyTo();
});
