UNPKG

mobility-toolbox-js

Version:

Toolbox for JavaScript applications in the domains of mobility and logistics.

15 lines (14 loc) 531 B
import realtimeStyle from './realtimeStyle'; /** * A tracker style that display the delay as backgroundColor. * * @param {*} trajectory The trajectory to render. * @param {*} viewState The view state of the map. * @param {*} options Some options to change the rendering * @return a canvas * @private */ const realtimeDelayStyle = (trajectory, viewState, options) => { return realtimeStyle(trajectory, viewState, Object.assign(Object.assign({}, options), { useDelayStyle: true })); }; export default realtimeDelayStyle;