Limit User Camera Movement


I am currently working on a project, where the user should not be able to move the camera too far from the original starting point.
i read the following post:

In the post, the solution stated is:
you can set the maximumZoomFactor to clamp the camera position so that the user can’t zoom too far from the country of interest.
This does not solve the problem at hand, it just makes it more time consuming to move the camera. I want to be able to set boundries in which the camera is able to move. Is this possible?

Thanks in advance,



This is a running feature request in CesiumJS - Camera boundry · Issue #4802 · CesiumGS/cesium · GitHub. I’ll add this request to that thread.

It’s possible with the existing camera API now, but will require implementing your own boundary behavior.