centerOnDistRoute

external fun centerOnDistRoute(route: Route, startDist: Int, endDist: Int, viewRc: Rect? = null, animation: Animation? = Animation(EAnimation.Linear))

Center On the given route parts The zoom level is automatically selected so that the entire route part between start distance and end distance is visible on the map

Parameters

route

Route to be shown.

startDist

start distance from route begin

endDist

end distance from route begin

viewRc

Screen viewport rectangle where routes should be centered. The coordinates are relative to view parent screen

animation

Specifies the animation to be used by the operation.