mobility-toolbox-js

Function

fullTrajectorystyle(
feature: *,
resolution: *,
options: *
): *

Interpolate or not the vehicle position from a trajectory at a specific date.

realtimeDefaultStyle(
trajectory: RealtimeTrajectory,
viewState: ViewState,
options: RealtimeStyleOptions
): *

A tracker style that take in account the delay.

realtimeDelayStyle(
trajectory: *,
viewState: *,
options: *
): *

A tracker style that display the delay as backgroundColor.

realtimeHeadingStyle(
trajectory: RealtimeTrajectory,
viewState: ViewState,
options: RealtimeStyleOptions
): *

A tracker style that take in account the delay.

Static

fullTrajectoryDelaystyle(): undefined[]source

Override:

Return:

undefined[]

See:

fullTrajectorystyle(
feature: *,
resolution: *,
options: *
): *
source

Override:

Params:

NameTypeAttributeDescription
feature*
resolution*
options*

Return:

*

See:

getVehiclePosition(
now: number,
trajectory: RealtimeTrajectory,
noInterpolate: boolean
): VehiclePosition
source

Interpolate or not the vehicle position from a trajectory at a specific date.

Override:

Params:

NameTypeAttributeDescription
nownumber

Current date to interpolate a position with. In ms.

trajectoryRealtimeTrajectory

The trajectory to interpolate.

noInterpolateboolean

If true, the vehicle position is not interpolated on each render but only once.

See:

realtimeDefaultStyle(
trajectory: RealtimeTrajectory,
viewState: ViewState,
options: RealtimeStyleOptions
): *
source

A tracker style that take in account the delay.

Override:

Params:

NameTypeAttributeDescription
trajectoryRealtimeTrajectory

The trajectory to render.

viewStateViewState

The view state of the map.

optionsRealtimeStyleOptions

Some options to change the rendering

Return:

*

a canvas

See:

realtimeDelayStyle(
trajectory: *,
viewState: *,
options: *
): *
source

A tracker style that display the delay as backgroundColor.

Override:

Params:

NameTypeAttributeDescription
trajectory*

The trajectory to render.

viewState*

The view state of the map.

options*

Some options to change the rendering

Return:

*

a canvas

See:

realtimeHeadingStyle(
trajectory: RealtimeTrajectory,
viewState: ViewState,
options: RealtimeStyleOptions
): *
source

A tracker style that take in account the delay.

Override:

Params:

NameTypeAttributeDescription
trajectoryRealtimeTrajectory

The trajectory to render.

viewStateViewState

The view state of the map.

optionsRealtimeStyleOptions

Some options to change the rendering

Return:

*

a canvas

See:

realtimeSimpleStyle(): *source

Override:

Return:

*

See: