I am trying to capture an image from Cesium to use as on overlay on a 2d map. I am having trouble getting the points to line up when I place it on the other map. After some investigation seems that the rectangle isn’t quite right.
Here is the example I have.
Two problems I have run into:
- Calling
Camera.setViewafterCamera.switchToOrthographicFrustum()throws an error. - Calling
Camera.switchToOrthographicFrustum()aftersetViewleaves a border around the rectangle.
Any ideas on how to get the camera set up so that it exactly captures the rectangle?