followPosition

fun followPosition(following: Boolean = true, animation: Animation = Animation(EAnimation.Linear, 900), zoomLevel: Int = -1, viewAngle: Double = Double.MAX_VALUE, navArrow: MapSceneObject? = null, trackMethod: CameraTrackMethod? = null, restoreCameraMode: Boolean = false)

Starts/Stops position follow.

Parameters

following

if true startFollowingPosition will be called else stopFollowingPosition.

animation

Specifies the animation to be used by the operation.

zoomLevel

Zoom level where the animation stops( Use -1 for automatic selection)

viewAngle

Map view angle ( see FollowPositionPreferences.viewAngle ). Default is Double.MAX_VALUE meaning use default specified.

navArrow

Navigation arrow scene object. If empty, a default SDK navigation arrow is used

trackMethod

Navigation arrow scene object. If empty, a default SDK navigation arrow is used

restoreCameraMode

Restore camera zoom level and view angle from Follow touch camera mode