center On Route Instruction
external fun centerOnRouteInstruction(instruction: RouteInstruction, zoomLevel: Int = -1, xy: Xy? = null, animation: Animation? = Animation(EAnimation.Linear), viewAngle: Double = Double.MAX_VALUE)
Centers WGS of route description on screen coordinates. The route instruction turn arrow is visible on map. The zoom level is automatically selected so that the entire turn arrow is visible on map. Note: Animation can be used only if automatic map rendering is active.
Parameters
instruction
Routing instruction
zoom Level
Zoom level( Use -1 for automatic selection)
xy
Screen position where the area should be centered. The coordinates are relative to view parent screen.
animation
Specifies the animation to be used by the operation.
view Angle
Specifies the map pitch angle Possible values for the animation complete callback