从 CesiumJS 获取相机的矩形位置

Get Camera's Rectangle position from CesiumJS

我无法获取当前相机视图的矩形位置。

我想在与当前相机视图(红色矩形)相同的位置创建一个矩形或墙。有什么办法吗?

谢谢

我不确定我理解你的问题,但我认为你可能会幸运地使用 Cesium 相机的 computeViewRectangle 函数来获得相机可以看到的近似矩形。

这是文档: https://cesiumjs.org/Cesium/Build/Documentation/Camera.html#computeViewRectangle