layers = [
new deck.TripsLayer({
id: "trips",
data: trips,
getPath: (d) => d.path,
getTimestamps: (d) => d.timestamps,
getColor: (d) => (d.vendor === 0 ? theme.trailColor0 : theme.trailColor1),
opacity: 0.35,
widthMinPixels: 2,
rounded: true,
trailLength: 180,
currentTime,
shadowEnabled: false
}),
new deck.PolygonLayer({
id: "buildings",
data: buildings,
extruded: true,
wireframe: false,
opacity: 0.3,
getPolygon: (f) => f.polygon,
getElevation: (f) => f.height,
getFillColor: theme.buildingColor,
material: theme.material
})
]