HybridScreenSpacePanCameraController
HybridScreenSpacePanCameraController combines map panning and elevator panning, and
switches between them based on how far the camera is looking from nadir. Looking mostly
down pans across the map; looking towards the horizon pans vertically. It is one of the
alternative camera controllers added in Cesium 1.144, built on the composable
Controller framework.
Use angleThreshold to move the switch-over point. The two controllers it delegates to
are reachable as elevatorController and mapController on the Cesium instance, via a
ref, if you need to tune them individually.
Cesium’s built-in camera controller keeps handling input unless it is turned off, so
mount ScreenSpaceCameraController with
enableInputs={false} and enableCollisionDetection={false} alongside this component.
- Cesium element: HybridScreenSpacePanCameraController
- Example: HybridScreenSpacePanCameraController
Availability
Section titled “Availability”Inside Viewer or CesiumWidget components.
The controller is registered with the scene’s ControllerHost.
Properties
Section titled “Properties”Cesium properties
Section titled “Cesium properties”| Property | Type | Description |
|---|---|---|
| enabled | boolean | |
| angleThreshold | number |
Cesium read-only properties
Section titled “Cesium read-only properties”N/A
Cesium events
Section titled “Cesium events”N/A
Other properties
Section titled “Other properties”| 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. |
