Camera
Camera to start moving the map and adjust tracking.
Extends:
ru.dgis.sdk.map.BaseCamera
Methods
fun move(moveController: CameraMoveController): Future<CameraAnimatedMoveResult>
Parameters
fun move(
position: CameraPosition,
time: Duration = Duration.ofMilliseconds(300),
animationType: CameraAnimationType = CameraAnimationType.DEFAULT
): Future<CameraAnimatedMoveResult>
Parameters
position
CameraPosition
Final camera position.
time
animationType
CameraAnimationType
Camera animation type.
Returns
fun move(
point: GeoPoint,
zoom: Zoom,
tilt: Tilt?,
bearing: Bearing,
time: Duration = Duration.ofMilliseconds(300),
animationType: CameraAnimationType = CameraAnimationType.DEFAULT
): Future<CameraAnimatedMoveResult>
Parameters
fun processMovementAndStop(): Unit
Returns
fun addFollowController(followController: FollowController): Unit
Adds a tracking controller.
There can be several different ones, for example, a controller for tracking the scale, map tilt, geolocation, etc.
Parameters
fun removeFollowController(followController: FollowController): Unit
Removes the tracking controller.
Parameters
fun setCustomFollowController(followController: CustomFollowController): Unit
Adds a tracking controller implemented on the platform.
Only one such controller can be installed. If you install multiple controllers, only the last one installed is used.
Parameters
fun removeCustomFollowController(): Unit
Removes the tracking controller implemented on the platform.
Returns
Properties
val stateChannel
Gets the current state of the camera.
val state
Gets the current state of the camera.
val behaviourChannel
Camera tracking mode.
val behaviour
Camera tracking mode.