[GH-ISSUE #260] [Enhancement] Track Position Map: render real circuit geometry with view mode toggle #55

Closed
opened 2026-05-07 00:18:18 +02:00 by BreizhHardware · 1 comment

Originally created by @4f4d on GitHub (Mar 20, 2026).
Original GitHub issue: https://github.com/IAmTomShaw/f1-race-replay/issues/260

Description

The Track Position Map insight currently uses a circular schematic to display driver positions. While effective for visualising relative gaps, it doesn't convey the actual circuit layout.

Proposal

Render the real circuit geometry in the Track Position Map using the boundary data already computed by build_track_from_example_lap():

  • Broadcast inner/outer track edges via the telemetry stream (periodically, to avoid payload bloat)
  • Draw a filled road surface between the boundaries, with edge lines and a dashed centre line
  • Position drivers along the actual track polyline
  • Keep both views via toggle buttons: Real Track and Circular (the original schematic)

Motivation

  • The main Arcade window already renders the real track — the insight window should match
  • The circular view remains useful when drivers are bunched up, so both modes are available
  • All geometry data already exists, it just needs to be piped through the telemetry stream

Affected Files

  • src/interfaces/race_replay.py — telemetry payload
  • src/insights/track_position_window.py — rendering + toggle UI
  • src/gui/insights_menu.py — description text
Originally created by @4f4d on GitHub (Mar 20, 2026). Original GitHub issue: https://github.com/IAmTomShaw/f1-race-replay/issues/260 ### Description The Track Position Map insight currently uses a circular schematic to display driver positions. While effective for visualising relative gaps, it doesn't convey the actual circuit layout. ### Proposal Render the real circuit geometry in the Track Position Map using the boundary data already computed by `build_track_from_example_lap()`: - Broadcast inner/outer track edges via the telemetry stream (periodically, to avoid payload bloat) - Draw a filled road surface between the boundaries, with edge lines and a dashed centre line - Position drivers along the actual track polyline - **Keep both views** via toggle buttons: Real Track and Circular (the original schematic) ### Motivation - The main Arcade window already renders the real track — the insight window should match - The circular view remains useful when drivers are bunched up, so both modes are available - All geometry data already exists, it just needs to be piped through the telemetry stream ### Affected Files - `src/interfaces/race_replay.py` — telemetry payload - `src/insights/track_position_window.py` — rendering + toggle UI - `src/gui/insights_menu.py` — description text
Author
Owner

@4f4d commented on GitHub (Mar 20, 2026):

PR open at #261
Happy to make any adjustments based on feedback.

<!-- gh-comment-id:4097770469 --> @4f4d commented on GitHub (Mar 20, 2026): PR open at #261 Happy to make any adjustments based on feedback.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#55
No description provided.