The president is not chosen by the national popular vote. Each state appoints electors. A candidate needs a majority of those electors.
The 2024 apportionment, still in force for 2028, is 538 electors. Half of 538 is 269, so 270 is the majority.
Maine and Nebraska appoint some electors by district. The map and the paths treat those units separately so the votes are not counted twice.