Commit a216ce7
fix: correct hemisphere letter for negative coords in demo
Rewrite formatDegrees without the in-expression param mutation and the
`0 | x` floor hacks. The mutation reassigned `degrees` to its absolute
value before getDirection ran, so negative coordinates always rendered
as E/N. Passing the original signed value fixes the direction (W/S).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c1844fd commit a216ce7
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments