Skip to content

feat: default leg kite sized for 1:250,000 print (18.5×20mm + 1cm triangle)#1099

Closed
msupino wants to merge 5 commits into
devfrom
feat/kite-print-size
Closed

feat: default leg kite sized for 1:250,000 print (18.5×20mm + 1cm triangle)#1099
msupino wants to merge 5 commits into
devfrom
feat/kite-print-size

Conversation

@msupino

@msupino msupino commented Jul 4, 2026

Copy link
Copy Markdown
Owner

The leg kite's default size now matches a real nav-log kite at the app's 1:250,000 page-frame scale.

Kite px are anchored at z12 (legZoomScale = 2^(z-12)), giving a fixed ground footprint → a fixed paper size at 1:250,000 (1 mm = 250 m; mpp(z12) ≈ 32.37 m/px ⇒ 1 mm ≈ 7.72 px). Defaults:

  • square 18.5 mm wide (legKiteCellWidthPx 71.5 ×2 = 143 px) × 20 mm tall (legKiteHeightPx 154.5 px)
  • triangle 10 mm (legKiteTriangleLenPx 77 px)

Up from ~6 mm. Text/border unchanged — still legible at the new size (verified in preview). Assumed square = 18.5 wide × 20 tall; trivially swappable if you meant the reverse.

Note: the live tuning gist (production override) was updated to the same values so the map changes immediately; this PR is the version-controlled fallback/default. Guard test asserts the printed mm at z12.

msupino added 2 commits July 4, 2026 20:26
…angle)

Kite px are anchored at z12 (legZoomScale = 2^(z-12)) → a fixed ground
footprint → a fixed paper size at the app's 1:250,000 page-frame scale
(1 mm = 250 m; mpp(z12) ≈ 32.37 m/px ⇒ 1 mm ≈ 7.72 px). Defaults now:
square 18.5 mm wide (cell×2 = 143 px) × 20 mm tall (154.5 px), triangle
10 mm long (77 px) — up from ~6 mm. Text/border unchanged (still
legible, verified in preview). The live tuning gist was updated to match;
this is the version-controlled fallback. Guard test asserts the mm.
@github-actions github-actions Bot temporarily deployed to pr-preview-1099 July 4, 2026 17:40 Inactive
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview deployed

Open PR preview →

https://msupino.github.io/NavigationApp/branch/feat/kite-print-size/

Commit: 42006b0

@github-actions github-actions Bot temporarily deployed to pr-preview-1099 July 4, 2026 17:52 Inactive
The 0.35 floor in legZoomScale() keeps kites clickable when zoomed out on
screen, but it also inflated the exported kite: a route framed on A4 at a low
zoom (z9-z10, common for long routes) printed the square at 26-56 mm instead
of the intended 18.5x20 mm. Export re-runs drawLegs(), so skip the floor when
NavAid.exporting is set -> the kite renders at its true z12-anchored 1:250,000
paper size (18.5x20 mm + 10 mm triangle) at any framing zoom. On-screen
behaviour (and hit-testing, which never runs during export) is unchanged.
@github-actions github-actions Bot temporarily deployed to pr-preview-1099 July 4, 2026 18:04 Inactive
@github-actions github-actions Bot temporarily deployed to pr-preview-1099 July 4, 2026 18:17 Inactive
@msupino

msupino commented Jul 4, 2026

Copy link
Copy Markdown
Owner Author

Reverting kite-size approach — current behaviour preferred. Closing per request.

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