Class MPDirectionsRenderer
Constructors
constructor
- new MPDirectionsRenderer(nativeEventEmitter: any): MPDirectionsRenderer
Accessors
Methods
clear
- clear(): Promise<void>
Returns Promise<void>
getSelectedLegFloorIndex
- getSelectedLegFloorIndex(): Promise<number>
Returns Promise<number>
nextLeg
- nextLeg(): Promise<void>
Returns Promise<void>
previousLeg
- previousLeg(): Promise<void>
Returns Promise<void>
selectLegIndex
- selectLegIndex(legIndex: number): Promise<void>
Returns Promise<void>
setAnimatedPolyline
- setAnimatedPolyline(
animated: boolean,
repeating: boolean,
durationMs: number,
): Promise<void> Parameters
- animated: boolean
- repeating: boolean
- durationMs: number
Returns Promise<void>
setCameraAnimationDuration
- setCameraAnimationDuration(durationMs: number): Promise<void>
Returns Promise<void>
setCameraViewFitMode
- setCameraViewFitMode(fitMode: MPCameraViewFitMode): Promise<void>
Returns Promise<void>
setDefaultRouteStopIcon
- setDefaultRouteStopIcon(icon: RouteStopIconConfig): Promise<void>
Returns Promise<void>
setOnLegSelectedListener
- setOnLegSelectedListener(listener?: OnLegSelectedListener): Promise<void>
Returns Promise<void>
setRoute
- setRoute(
route?: MPRoute,
stopIcons?: Map<number, RouteStopIconConfig>,
legIndex?: number,
): Promise<void> Returns Promise<void>
showRouteLegButtons
- showRouteLegButtons(show: boolean): Promise<void>
Returns Promise<void>
Renders a MPRoute on the map.
Export
MPDirectionsRenderer