center On Dist Route
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.
start Dist
start distance from route begin
end Dist
end distance from route begin
view Rc
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.