User camera interactions
Disable all user interactions. This does not affect programmatic
Camera controls, such as set
and focusOn
Enable all user interactions. This does not affect programmatic
Camera controls, such as set
and focusOn
The current camera animation, if any. Resolves when the animation finishes.
Get the current maximum tilt angle (in radians) the camera is allowed to use.
Sets the maximum tilt angle (in radians) the camera is allowed to use.
Tilt angle must be between 0 and π/2 radians. It will be clamped within this range if it exceeds it on either end.
As tilt angle approaches π/2 radians, this will impact overall touch controls and should be used sparingly.
Get the maximum distance (in meters) the camera is allowed to get from the ground.
Set the maximum distance (in meters) the camera is allowed to get from the ground.
Get the minimum distance (in meters) the camera is allowed to get to the ground.
Set the minimum distance (in meters) the camera is allowed to get to the ground.
Get the current camera position, which is at the center of the map.
the position as a coordinate
Current Camera rotation (in radians) from north
Current camera tilt angle (in radians), relative to a top-down view.
ex: 0 means the camera is facing top-down, π/2 means the camera is facing directly from the side.
Current Camera zoom (in meters)
Animate the Camera's view to smoothly transition to a new state over time.
a Promise that resolves when the animation finishes, or rejects when it is cancelled.
Cancel the currently active Camera animation.
Focus the Camera view on a collection of targets and animate to that state.
a Promise that resolves when the animation finishes, or rejects when it is cancelled.
Set the Camera's view to a new state.
The Camera object specifies a view of the map and allows manipulation of that view.