//我需要完成飞行对象创建于是我先创建了飞行路线对象,在创建飞行站点,再通过route.addStop方法添加站点,但是报错了 // 创建飞行路由 const routes = new Cesium.RouteCollection(viewer.entities) // 创建飞行路线对象 const route = new Cesium.Route({ isLineVisible: true, isStopVisible: true, routeName: mapStr.name, speed: mapStr.speed, isAlongline: true, totalDuration: 100 }) // 批量添加飞行站点 for (let i = 0; i < positions.length; i++) { const element = positions[i]; const point = new Cesium.Cartesian3(element.x, element.y, element.z) const flyItem = new Cesium.RouteStop({ point: point }) route.addStop(flyItem) }