When the map is minimized, how to make it move horizontally only

video.rar (1.5 MB) When the map is minimized, how to make it move horizontally only。I try to control the camera to achieve. But the page will flash.

There is not a one step process for making the camera move horizontally only, but you can set a bounding area for the camera. Please see: Limit movements area - #4 by Matt_Amato

The code in the previous link that I shared is quite old and does not work in recent Cesium updates. Currently, we don’t have built-in API functions to handle this. You can try modifying the base code in CesiumJS to change the camera behavior. Please see cesium/Camera.js at 70f3a343865e97971a3558ddd53a784ab6ae5da4 · CesiumGS/cesium · GitHub. This clampMove2D function is a good place to start.

My apologies for the previous misleading response.