首页 / 浏览问题 / 三维GIS / 问题详情
超图FAQ:【WebGL】在iClient3D for Cesium 中如何实现实体线自动移动?
43,901EXP 2023年04月11日
【WebGL】在iClient3D for Cesium 中如何实现实体线自动移动?

1个回答

【解决方法】 实体中移动主要使用CallbackProperty方法来实现,具体可参考下方代码。 polyline.polyline.positions = new Cesium.CallbackProperty(function() { var value = []; for (var i = 0; i < positions.length; i++) { var newPos = Cesium.Cartesian3.add(positions[i], new Cesium.Cartesian3(offset, offset, 0), new Cesium.Cartesian3()); value.push(newPos); } offset += 1000; return value; }, false);
43,901EXP 2023年04月11日
热门文章
关注我们
...