function tripsLayer() {
const layer = new deck.TripsLayer({
id: 'TripsLayer',
data: 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/website/sf.trips.json',
currentTime: 500,
getTimestamps: d => d.waypoints.map(p => p.timestamp - 1554772579000),
trailLength: 600,
getColor: [253, 128, 93],
getPath: d => d.waypoints.map(p => p.coordinates),
rounded: true,
widthMinPixels: 8,
opacity: 0.8,
});
return layer
}