The mode of the camera to automatically set the minimum zoom level based on the size of the scene.
The current bearing of the camera in degrees clockwise from North. 0 degrees is North, 90 degrees is East, 180 degrees is South, and 270 degrees is West.
The current center coordinate (Coordinate) of the camera.
The current elevation of the camera in meters.
The maximum pitch of the camera in degrees.
The maximum zoom level of the camera in mercator zoom levels.
The minimum pitch of the camera in degrees.
The minimum zoom level of the camera in mercator zoom levels.
The camera's current pan mode.
The current pitch of the camera in degrees.
The current zoom level of the camera in mercator zoom levels.
Experimental
Animate the camera's elevation to a specified elevation.
The target elevation in meters.
Optional
options: TCameraAnimationOptionsOptional settings for the camera animation.
Animates the camera to a specified target.
The target configuration for the camera.
Optional
options: TCameraAnimationOptionsOptional settings for the camera animation.
Focuses the camera on a specific target or array of targets.
The target(s) to focus on, either a single element or an array of elements.
Optional
options: TFocusOnOptionsOptional settings for focusing the camera.
Get the camera transform that can be used to focus on a target or array of targets. Similar to Camera.focusOn but returns the transform directly.
The target(s) to get the camera transform for.
Optional
options: TFocusOnOptionsOptional settings for the camera transform.
The camera transform which can then be passed to Camera.set or Camera.animateTo.
Sets the camera to a specified target without animation.
The target configuration for the camera.
Toggle the mode of the camera to automatically set the minimum zoom level based on the size of the scene. It will be automatically disabled when the minimum zoom level is set manually.
The new value for the auto min zoom level mode.
Define an area of the screen that is safe for the camera. Anything outside the safe area is assumed to be covered in some way. The camera will not place any map elements there when calling Camera.focusOn.
The padding in pixels.
The Camera class is used to control the camera's position, pitch, bearing, and zoom level. It can also be used to focus on one or more locations on the map. The camera can be repositioned instantly or animated to a new position.
This class is accessed using MapView.Camera
Refer to the Camera Guide for more information and interactive examples.