How to get the Pan and Zoom values from the camera?

Hi,

Is there is a way or API to get the Pan and Zoom value of the camera with respect to the current position?

Thanks in advance.

Regards,

Premkumar

Hi Premkumar,

I don’t think those values are stored anywhere in the camera. Take a look at the documentation to see if there’s any other data you can use to help: http://cesiumjs.org/Cesium/Build/Documentation/Camera.html

Best,

Hannah

Hi Hannah,

Thank you for the response.

I’ve spend some time with the camera documentation. I could not found anything related to PAN and ZOOM. We can configure the camera settings (enableZoom, min & max Zoom dist., etc.,) with the ScreenSpaceCameraController.

But, I’m looking for to get the zoom and pan value with respect to the camera. I’m not sure, where those properties are available.

I’m trying to address this bug (world coordinates to windows coordinates) with the help of this post. To try the solution I need the above values.

Appreciate your support.

Thank you!

Regards,

Premkumar.

Hi Premkumar,

I’m not sure if pan or zoom are the cause of the problem. It’s likely related to a change that happens in the camera transform when you’re tracking an entity.
Sorry we haven’t had a chance to look into this issue yet. We’ve been focusing on the new 3D Tiles implementation and other graphics related enhancements lately.

I’ve tagged Dan in the GitHub issue asking if he can give you advice. Thanks for looking into fixing this!

Best,

Hannah

Hi Hannah,

Thank you for your advice and all the best for 3D Tiles implementation. My next implementation will be integration with point clouds. I’m waiting to bring that feature to my app.

I shall follow up with Dan on the issue in GitHub.

Regards,

Premkumar