State

public struct State

Encapsulates state of the camera.

  • Camera’s ‘LookAt’ target position in geodetic space.

    Note: The altitude of the target point is ignored. Any subsequent camera updates and animations will consider the target point as being located on the ground.

    Declaration

    Swift

    public var targetCoordinates: GeoCoordinates
  • Camera’s orientation at target point.

    Declaration

    Swift

    public var orientationAtTarget: GeoOrientation
  • Distance from the camera to the target point in meters.

    Declaration

    Swift

    public var distanceToTargetInMeters: Double
  • Zoom level corresponding to the current distance to target.

    Declaration

    Swift

    public var zoomLevel: Double
  • Creates a new instance.

    • Parameters

      • targetCoordinates: Camera’s ‘LookAt’ target position in geodetic space.

      Note: The altitude of the target point is ignored. Any subsequent camera updates and animations will consider the target point as being located on the ground.

      • orientationAtTarget: Camera’s orientation at target point.
      • distanceToTargetInMeters: Distance from the camera to the target point in meters.
      • zoomLevel: Zoom level corresponding to the current distance to target.

    Declaration

    Swift

    public init(targetCoordinates: GeoCoordinates, orientationAtTarget: GeoOrientation, distanceToTargetInMeters: Double, zoomLevel: Double)