follow Position
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.
zoom Level
Zoom level where the animation stops( Use -1 for automatic selection)
view Angle
Map view angle ( see FollowPositionPreferences.viewAngle ). Default is Double.MAX_VALUE meaning use default specified.
nav Arrow
Navigation arrow scene object. If empty, a default SDK navigation arrow is used
track Method
Navigation arrow scene object. If empty, a default SDK navigation arrow is used
restore Camera Mode
Restore camera zoom level and view angle from Follow touch camera mode