Skip to content

ScreenSpaceElevatorCameraController

ScreenSpaceElevatorCameraController pans the camera vertically, as if riding an elevator, which suits inspecting the facade of a building or another tall asset. It is one of the alternative camera controllers added in Cesium 1.144, built on the composable Controller framework.

Cesium’s built-in camera controller keeps handling input unless it is turned off, so mount ScreenSpaceCameraController with enableInputs={false} alongside this component. Vertical panning also moves the camera towards geometry, so enableCollisionDetection={false} is usually wanted too.

Inside Viewer or CesiumWidget components. The controller is registered with the scene’s ControllerHost.

Property Type Description
enabled boolean
maximumMovementRatio number
inertiaEnabled boolean
inertialDecay number
panSpeed number
pickWorldPosition (…params: any[]) => any
Property Type Description
dragInputs InputBinding[] | undefined Mouse button and optional keyboard modifier combinations that start a vertical pan. Bindings are attached once when the controller is registered, so changing this prop re-creates the controller rather than mutating it in place.

N/A

Property Type Description
priority number | undefined Precedence relative to other registered controllers. 0 applies before every other controller; omitting it makes this controller the highest priority. Changing this prop re-registers the controller.