CameraActions

public protocol CameraActions

A protocol that defines camera actions.

  • Returns visible region of the map.

    Declaration

    Swift

    var visibleRegion: VisibleRegion { get }
  • Returns current camera properties.

    Declaration

    Swift

    var cameraProperties: CameraProperties { get }
  • Returns the camera tracking mode in the Map.

    Declaration

    Swift

    var cameraTrackingMode: CameraTrackingMode { get set }
  • Updates the camera using an animation over the given duration.

    Declaration

    Swift

    func applyCamera(_ update: CameraUpdate, animationDuration: TimeInterval, completion: ((Bool) -> ())?)

    Parameters

    update

    The camera options that will be applied.

    animationDuration

    The animation duration.

    completion

    The completion that will be executed when animation ends or interrupted.

  • Moves the camera without animation.

    Declaration

    Swift

    func moveCamera(_ update: CameraUpdate)

    Parameters

    update

    The camera update that will be applied.

  • Stops camera update that is in progress.

    Declaration

    Swift

    func stopAnimation()

CameraActions

  • applyCamera(_:completion:) Extension method

    Updates the camera using an animation over a one-second duration.

    Declaration

    Swift

    public func applyCamera(_ update: CameraUpdate, completion: ((Bool) -> ())?)

    Parameters

    update

    The camera update that will be applied.

    completion

    The completion that will be executed when animation ends or interrupted.

  • Updates the camera using an animation over the given duration.

    Declaration

    Swift

    public func applyCamera(_ update: CameraUpdate, animationDuration: TimeInterval)

    Parameters

    update

    The camera update that will be applied.

    animationDuration

    The animation duration.

  • applyCamera(_:) Extension method

    Updates the camera using an animation over a one-second duration.

    Declaration

    Swift

    public func applyCamera(_ update: CameraUpdate)

    Parameters

    options

    The camera update that will be applied.