DrivingRouteOptions
interface DrivingRouteOptions {
onInfoHtmlSet?: (poi: LocalResultPoi, html: HTMLElement) => void;
onMarkersSet?: (pois: LocalResultPoi[]) => void;
onPolylinesSet?: (polylines: Polyline[]) => void;
onResultsHtmlSet?: (container: HTMLElement) => void;
onSearchComplete?: (results: DrivingRouteResult) => void;
policy?: DrivingPolicy;
renderOptions?: RenderOptions;
}
onInfoHtmlSet?: (poi: LocalResultPoi, html: HTMLElement) => void;
onMarkersSet?: (pois: LocalResultPoi[]) => void;
onPolylinesSet?: (polylines: Polyline[]) => void;
onResultsHtmlSet?: (container: HTMLElement) => void;
onSearchComplete?: (results: DrivingRouteResult) => void;
policy?: DrivingPolicy;
renderOptions?: RenderOptions;
}
DrivingRoute 构造函数的可选参数