in modules/layers/src/layers/path-marker-layer/path-marker-layer.ts [139:173]
renderLayers() {
return [
new PathOutlineLayer(
this.props,
this.getSubLayerProps({
id: 'paths',
// Note: data has to be passed explicitly like this to avoid being empty
data: this.props.data,
})
),
new this.props.MarkerLayer(
this.getSubLayerProps(
Object.assign({}, this.props.markerLayerProps, {
id: 'markers',
data: this.state.markers,
getOrientation: (x) => [0, -x.angle, 0],
getColor: (x) => x.color,
sizeScale: this.props.sizeScale,
fp64: this.props.fp64,
pickable: false,
parameters: {
blend: false,
depthTest: false,
},
})
)
),
this.state.closestPoints &&
new ScatterplotLayer({
id: `${this.props.id}-highlight`,
data: this.state.closestPoints,
fp64: this.props.fp64,
}),
];
}