UNPKG

mobility-toolbox-js

Version:

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

15 lines (14 loc) 552 B
import realtimeDefaultStyle from './realtimeDefaultStyle'; /** * 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 realtimeDefaultStyle(trajectory, viewState, Object.assign(Object.assign({}, options), { useDelayStyle: true })); }; export default realtimeDelayStyle;