AreaCameraBehavior
public class AreaCameraBehavior : CameraBehavior
extension AreaCameraBehavior: NativeBase
extension AreaCameraBehavior: Hashable
Use this class to show an overview of geo points. By default, the orientation of the camera will be perpendicular to the Earth’s surface (ie. looking towards the center of the Earth), while bearing will be towards north.
Note: This is a beta feature; there maybe bugs and unexpected behavior. Related API’s are subject to change without a deprecation process.
-
Creates a new instance of this class.
Declaration
Swift
public init() -
The normalized principal point. Normalized principal point to be used during navigation. Defaults to (0.5, 0.775), which means the camera will use the position slightly at the bottom of the mapview.
Declaration
Swift
public var normalizedPrincipalPoint: Anchor2D { get set } -
The view rectangle for camera updates. Defines a sub-space of the screen that the behavior should consider for camera updates. Defaults to
nil. If not set, it uses the viewport bounds of the underlying map view.Declaration
Swift
public var viewRectangle: Rectangle2D? { get set } -
The duration of camera animation in milliseconds. If there is an animation, it will last for specified period of time. Defaults to 500 milliseconds, or half a second.
Declaration
Swift
public var cameraAnimationDuration: TimeInterval { get set } -
The duration of principal point animation in milliseconds. If the principal point is changed, the change will be animated over this duration. Defaults to 500 milliseconds, or half a second.
Declaration
Swift
public var principalPointAnimationDuration: TimeInterval { get set } -
Maximal allowed zoom. Defines maximal zoom level to be applied to enclose geodetic bounding box. Defaults to a
MapMeasurewith kindMapMeasure.Kind.zoomLeveland value 20.0.Declaration
Swift
public var maxZoom: MapMeasure { get set } -
Camera bearing in degrees. The direction in which the camera will point in degrees clockwise, relative to true North. The input should range between [0, 360]. Defaults to true North (0 degrees).
Declaration
Swift
public var cameraBearingInDegrees: Double { get set } -
Camera tilt in degrees. The tilt of the camera relative to the axis perpendicular to the ground. Defaults to 0 degrees, meaning that it will look straight down into the ground.
Declaration
Swift
public var cameraTiltInDegrees: Double { get set } -
Include current position in camera view. Decides if the current position should be added to the set of visible points. Note that if the current position is in the vicinity of any of the visible points, setting this to
falsewill not explicitly exclude the current position from the camera view. However if displaying an area potentially away from the current position, this does need to be explicitly set tofalseor it will try to include the current position. Defaults to false.Declaration
Swift
public var isCurrentPositionIncluded: Bool { get set } -
Sets the list of geo points to show in the camera view.
Declaration
Swift
public func setVisiblePoints(visiblePoints: [GeoCoordinates])Parameters
visiblePointsThe list of geo points to visualize. The list can be empty.
-
Gets configured visible geo points.
Declaration
Swift
public func getVisiblePoints() -> [GeoCoordinates]Return Value
The list of geo points to show in the camera view. The list can be empty.