center On Route Traffic Event
external fun centerOnRouteTrafficEvent(event: RouteTrafficEvent, zoomLevel: Int = -1, rc: Rect? = null, animation: Animation? = Animation(EAnimation.Linear), viewAngle: Double = Double.MAX_VALUE)
Centers the specified route traffic event in screen rectangle. Note: Animation can be used only if automatic map rendering is active.
Parameters
event
Route traffic event
zoom Level
Zoom level. When -1 is used, the zoom level is automatically selected so that the route traffic event fits the specified screen rectangle.
rc
Screen rectangle where 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