Camera
Camera to start moving the map and adjust tracking.
ru.dgis.sdk.map.BaseCamera
fun move(moveController: CameraMoveController): Future<CameraAnimatedMoveResult>
fun move(
position: CameraPosition,
time: Duration = Duration.ofMilliseconds(300),
animationType: CameraAnimationType = CameraAnimationType.DEFAULT
): Future<CameraAnimatedMoveResult>
position
CameraPosition
Final camera position.
time
Duration
Time allotted for moving the map
animationType
CameraAnimationType
Camera animation type.
fun move(
point: GeoPoint,
zoom: Zoom,
tilt: Tilt?,
bearing: Bearing,
time: Duration = Duration.ofMilliseconds(300),
animationType: CameraAnimationType = CameraAnimationType.DEFAULT
): Future<CameraAnimatedMoveResult>
Starts the animated map movement using the built-in map movement controller.
Resets the current map tracking mode and interrupts gesture processing.
point
GeoPoint
Point of the final camera position.
zoom
Zoom
Zoom level in the final camera position.
tilt
Tilt?
Tilt in the final camera poition or an empty value if it is necessary to use the value from the follow controller or the current one depending on the active following mode.
bearing
Bearing
Bearing in the final camera position.
time
Duration
Time allotted for moving the map
animationType
CameraAnimationType
Camera animation type.
fun processMovementAndStop(): Unit
Sets the camera position according to the current time and stops animated movement.
Calling the method interrupts the flyover and gesture processing, and also resets the tracking mode.
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.
fun removeFollowController(followController: FollowController): Unit
Removes the tracking controller.
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.
fun removeCustomFollowController(): Unit
Removes the tracking controller implemented on the platform.
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.