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 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 between 0 (top-down) to 1 (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.