Skip to content

Draw the repairs line dashed: thin dash stroke over a solid casing - #57

Merged
egorikftp merged 1 commit into
mainfrom
feat/dashed-repairs
Nov 15, 2026
Merged

egorikftp merged 1 commit into
mainfrom
feat/dashed-repairs

Conversation

@egorikftp

Copy link
Copy Markdown
Contributor

The solid repairs line read heavy — a wall of red at every zoom. This gives it the roadwork look: a solid casing beneath a thin dashed stroke.

  • The dash stroke is a step thinner than the medium-speed lines (2.5px vs 4px), cut with butt caps — a round cap bloats every dash into a pill — so the dasharray is the literal geometry: long dashes, a shorter gap (3:2).
  • The casing keeps the rounded ends and the crisp silhouette underneath; it takes the theme ink on dark and a white veil on light.
  • The dasharray is in line-width units and both widths are fixed constants, so the pattern is constant screen-size at every zoom — no interpolation needed.
  • The hitbox layer is untouched, clicks and cursor behavior stay as they were.

Verified live in both themes on the long Р-28 stretch near Minsk.

@egorikftp
egorikftp merged commit 0afb178 into main Nov 15, 2026
1 check passed
@egorikftp
egorikftp deleted the feat/dashed-repairs branch November 15, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant