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.
Optionallistener: OnLegSelectedListenerSet a route to be rendered. This also resets the selected leg and step indices to 0.
Optionalroute: MPRouteOptionalstopIcons: Map<number, RouteStopIconConfig> = nullOptionallegIndex: number = 0Overwrites the starting leg index, when rendering the route
Renders a MPRoute on the map.
Export
MPDirectionsRenderer