Creates an instance of MPDirectionsRenderer.
Set the fitmode of the camera, when displaying route elements on the map.
Set a listener, which will be invoked when a new leg has been selected.
This is used for when the forward/back markers are selected on the map.
Optional
listener: OnLegSelectedListenerSet a route to be rendered. This also resets the selected leg and step indices to 0.
Optional
route: MPRouteOptional
stopIcons: Map<number, RouteStopIconConfig> = nullOptional
legIndex: number = 0Overwrites the starting leg index, when rendering the route
Renders a MPRoute on the map.
Export
MPDirectionsRenderer