Camera
Camera for triggering map movement and tracking settings.
BaseCamera
public func move(
moveController: CameraMoveController
) -> Future<CameraAnimatedMoveResult>
public func move(
position: CameraPosition,
time: TimeInterval = 0.3,
animationType: CameraAnimationType = CameraAnimationType.`default`
) -> Future<CameraAnimatedMoveResult>
position
CameraPosition
Camera end position.
time
TimeInterval
Time allocated for moving the map.
animationType
CameraAnimationType
Type of animation when moving the camera.
Future<>
public func move(
point: GeoPoint,
zoom: Zoom,
tilt: Tilt?,
bearing: Bearing,
time: TimeInterval = 0.3,
animationType: CameraAnimationType = CameraAnimationType.`default`
) -> Future<CameraAnimatedMoveResult>
Starts an animated map move using the built-in map move controller.
Resets the current map tracking mode and interrupts gesture processing.
point
GeoPoint
Point of the final camera position.
zoom
Zoom
Scaling level in the final camera position.
tilt
Tilt?
Tilt in the final camera position or an empty value if you need to use a value from the FollowController or the current value depending on the active tracking mode.
bearing
Bearing
Bearing in the final camera position.
time
TimeInterval
Time allocated for moving the map.
animationType
CameraAnimationType
Type of animation when moving the camera.
Future<>
public func processMovementAndStop()
Sets the camera position according to the current time and stopping the animated movement.
The call interrupts the camera flyover and gesture processing and resets the tracking mode.
public func setBehaviour(
behaviour: CameraBehaviour
)
Switch of the camera tracking mode. If a new mode is more restricted then the current one, the call will interrupt the flyover and gesture handling.
behaviour
public func addFollowController(
followController: FollowController
)
Adds the follow controller.
followController
public func removeFollowController(
followController: FollowController
)
Removes the follow controller.
followController
public func setCustomFollowController(
followController: CustomFollowController
)
Adding the follow controller implemented on the platform.
followController
public func removeCustomFollowController()
Removes the follow controller implemented on the platform.
var stateChannel
StatefulChannel<CameraState>
Obtaining the current status of the camera.
var state
Obtaining the current status of the camera.
var behaviourChannel
StatefulChannel<CameraBehaviourChange>
Camera tracking mode.
var behaviour
Camera tracking mode.