layers.push(new TripsLayer({
id: 'trips',
data: trips,
getPath: (d: Trip) => d.segments.map((p: Waypoint) => p.coordinates),
getTimestamps: (d: Trip) => d.segments.map((p: Waypoint) => p.timestamp),
getColor: (d: Trip) => d.segments.map((p: Waypoint) => p.color),//this.getColor,
opacity: 0.3,
widthMinPixels: 5,
trailLength,
currentTime
I have a single trip displayed on Deck.gl, and I aim to assign unique colors to each coordinate of the trip. However, the color remains constant and often appears black despite changes in location and time. The color property is defined in the 'trips.json' as shown here: