Function
fullTrajectorystyle( | |
getVehiclePosition( | Interpolate or not the vehicle position from a trajectory at a specific date. |
realtimeDefaultStyle( | A tracker style that take in account the delay. |
realtimeDelayStyle( | A tracker style that display the delay as backgroundColor. |
realtimeHeadingStyle( | A tracker style that take in account the delay. |
realtimeSimpleStyle(): * |
Static
fullTrajectorystyle(
feature: *,
resolution: *,
options: *
): *source
Params:
Name | Type | Attribute | Description |
feature | * | ||
resolution | * | ||
options | * |
Return:
* |
getVehiclePosition(
now: number,
trajectory: RealtimeTrajectory,
noInterpolate: boolean
): VehiclePositionsource
Params:
Name | Type | Attribute | Description |
now | number | Current date to interpolate a position with. In ms. | |
trajectory | RealtimeTrajectory | The trajectory to interpolate. | |
noInterpolate | boolean | If true, the vehicle position is not interpolated on each render but only once. |
Return:
VehiclePosition |
realtimeDefaultStyle(
trajectory: RealtimeTrajectory,
viewState: ViewState,
options: RealtimeStyleOptions
): *source
Params:
Name | Type | Attribute | Description |
trajectory | RealtimeTrajectory | The trajectory to render. | |
viewState | ViewState | The view state of the map. | |
options | RealtimeStyleOptions | Some options to change the rendering |
Return:
* | a canvas |
realtimeDelayStyle(
trajectory: *,
viewState: *,
options: *
): *source
Params:
Name | Type | Attribute | Description |
trajectory | * | The trajectory to render. | |
viewState | * | The view state of the map. | |
options | * | Some options to change the rendering |
Return:
* | a canvas |
realtimeHeadingStyle(
trajectory: RealtimeTrajectory,
viewState: ViewState,
options: RealtimeStyleOptions
): *source
Params:
Name | Type | Attribute | Description |
trajectory | RealtimeTrajectory | The trajectory to render. | |
viewState | ViewState | The view state of the map. | |
options | RealtimeStyleOptions | Some options to change the rendering |
Return:
* | a canvas |
realtimeSimpleStyle(): *source
Return:
* |