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 the animation ends or is 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()
-
applyCamera(_:
Extension methodcompletion: ) 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 the animation ends or is interrupted.
-
applyCamera(_:
Extension methodanimationDuration: ) 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
update
The camera update that will be applied.