Skip to content

Fix bug with track with odd start-finish svg's #11

Open
@mpavich2

Description

@mpavich2

Issue

Hypothesis:
These following tracks have an odd svg start-finish which I think causes a problem with the track map direction.
Almost all tracks have a <path> tag inside the start-finish svg, but these use <defs>, <symbol>, and <use> which breaks the intersection logic since it scans for paths. When a track has no intersection point the track map progress for drivers seems to break, sometimes making drivers look like they are moving in reverse.

Potential solutions looking into:

  1. When downloading svgs, scan for those bad tags and convert the svg to use normal path tags instead.
  2. Look for solution to find intersection between a path and symbols/use/defs

TrackIds

  • 244: Autodromo Nazionale Monza
  • 425: Knockhill Racing Circuit
  • 493: Kevin Harvick's Kern Raceway
  • 494: Kevin Harvick's Kern Raceway
  • 496: Kevin Harvick's Kern Raceway
  • 497: Kevin Harvick's Kern Raceway
  • 501: Misano World Circuit Marco Simoncelli
  • 502: Misano World Circuit Marco Simoncelli
  • 503: Misano World Circuit Marco Simoncelli
  • 504: Misano World Circuit Marco Simoncelli
  • 505: Misano World Circuit Marco Simoncelli
  • 508: Lime Rock Park
  • 509: Algarve International Circuit
  • 510: Algarve International Circuit
  • 511: Algarve International Circuit
  • 512: Algarve International Circuit
  • 513: Millbridge Speedway
  • 516: Circuito de Navarra
  • 517: Circuito de Navarra
  • 518: Oswego Speedway
  • 519: Oswego Speedway
  • 520: Oswego Speedway
  • 521: Sachsenring
  • 527: Cadwell Park Circuit
  • 528: Cadwell Park Circuit
  • 529: Cadwell Park Circuit
  • 530: Cadwell Park Circuit
  • 531: Huset's Speedway
  • 532: Thruxton Circuit

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions