PitchKit

indexPlayersById()

function indexPlayersById(match): Map<number, SkillCornerMatchPlayer>;

Defined in: packages/data-providers/src/skillcorner/select.ts:75

Players by id, for putting names and teams onto tracked positions.

Tracking frames carry only player_id — no name, number or team — so anything that colours by team needs this lookup. Note the join is on players[].id, not trackable_object, which is a different id space and matches nothing in the tracking file.

Parameters

ParameterType
matchSkillCornerMatch

Returns

Map<number, SkillCornerMatchPlayer>

On this page