这是我的 TripsLayer,我想过滤一些数据。我想我可以做到这一点trips.setProps({ data: newData})
,但有没有其他方法可以做到这一点?像将不透明度设置为0?谢谢
trips = new MapboxLayer({
id: 'trips',
type: TripsLayer,
data: ro,
getPath: d => {
return d.path
},
getTimestamps: d => {
return d.timestamps
},
getColor: d => d.color,
widthMinPixels: 3,
rounded: true,
trailLength: 10000,
currentTime: globalTime,
shadowEnabled: false
})