CameraOptions

public struct CameraOptions : Hashable

Undocumented

  • Undocumented

    Declaration

    Swift

    public var center: CLLocationCoordinate2D?
  • Undocumented

    Declaration

    Swift

    public var padding: UIEdgeInsets?
  • Undocumented

    Declaration

    Swift

    public var anchor: CGPoint?
  • Undocumented

    Declaration

    Swift

    public var zoom: CGFloat?
  • Undocumented

    Declaration

    Swift

    public var bearing: CLLocationDirection?
  • Undocumented

    Declaration

    Swift

    public var pitch: CGFloat?
  • CameraOptions represents a set of updates to make to the camera.

    Declaration

    Swift

    public init(center: CLLocationCoordinate2D? = nil,
                padding: UIEdgeInsets? = nil,
                anchor: CGPoint? = nil,
                zoom: CGFloat? = nil,
                bearing: CLLocationDirection? = nil,
                pitch: CGFloat? = nil)

    Parameters

    center

    The geographic coordinate that will be rendered at the midpoint of the area defined by padding.

    padding

    Insets from each edge of the map. Impacts the “principal point” of the graphical projection and the location at which center is rendered.

    anchor

    Point in the map’s coordinate system about which zoom and bearing should be applied. Mutually exclusive with center.

    zoom

    The zoom level of the map.

    bearing

    The bearing of the map, measured in degrees clockwise from true north.

    pitch

    Pitch toward the horizon measured in degrees, with 0 degrees resulting in a top-down view for a two-dimensional map.

    Return Value

    A CameraOptions that contains all configuration information the map will use to determine which part of the map to render.

  • Undocumented

    Declaration

    Swift

    public init(cameraState: CameraState, anchor: CGPoint? = nil)
  • Declaration

    Swift

    public static func == (lhs: CameraOptions, rhs: CameraOptions) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)