Commit Graph

25 Commits

Author SHA1 Message Date
bb9672e1b6 improve road name labelling
- print each name only once
- enlarge text size
- print white rectangle underneath label
2025-06-03 13:09:09 +01:00
70dea4a4db replace missing var lost in bad git merge 2025-06-03 13:07:21 +01:00
48cfa81595 off-white background colour 2025-06-03 08:55:27 +01:00
890cdb1c1d improve text placement 2025-06-03 08:55:27 +01:00
521bc409e5 render road names (badly) 2025-06-03 08:55:25 +01:00
11bbf10781 parse way name as well as points 2025-06-03 08:55:14 +01:00
04f6665a91 draw roads fatter and with edging 2025-06-03 08:55:14 +01:00
b70c72fcfe fix two more off-by-one errors
- we were incrementing num-tiles, no need to
- the overpass fetcher was fetcing one tile too far left
2025-06-02 13:43:39 +01:00
380c5e7410 rewrite map-bouds to get less off-screen tiles 2025-06-02 13:35:10 +01:00
39a2e49422 add on-completion callback to tile fetcher, invalidate map-surface 2025-06-02 13:33:51 +01:00
8ee10214c8 async tile fetcher
we use cqueues, which is the async framework that lua-http is built
on. we integrate it into the glib event loop rather hackily by calling
the cqueues event stepper ever 20ms from a glib timeout function

overpass has very low rate limits so we handle a 429 response by
sleeping for a random length of time and retrying. This is, also,
a bit of a hack
2025-06-01 20:50:26 +01:00
195e028e22 clobber map-surface when bounds change 2025-05-30 23:34:17 +01:00
acbe27e6e2 draw map once only and copy it to screen in on_draw
This massively reduces cpu usage, however it doesn't yet work
if we've moved far enough that we'd need to fetch new tiles.
2025-05-30 21:24:28 +01:00
2a86a2bfde use register-widget more, fewer arrow widget repaints 2025-05-29 21:13:19 +01:00
f64bfeb7fd invalidate map only when app-state changes 2025-05-29 21:09:24 +01:00
cb0314d1d6 invalidate the map display each time we repaint it
really we should only need to do this when the app-state changes
2025-05-29 21:03:02 +01:00
86682a2ad6 fetch enough tiles to cover the display 2025-05-29 18:13:47 +01:00
995880e5a3 wip 2025-05-29 12:48:21 +01:00
398693bc07 hook the ui up to the overpass data 2025-05-28 18:50:12 +01:00
21471654cb add aroow to show direction of travel 2025-05-18 23:18:15 +00:00
e49173cfdd hook nmea messages up to widgets 2025-05-18 18:23:27 +00:00
97440603f3 maps: accept socket path as command line arg 2025-05-18 18:00:06 +00:00
bf7eac5fac parse nmea from socket 2025-05-17 23:23:32 +00:00
4835b24e03 maps: read from gnss unix socket 2025-05-16 21:19:09 +00:00
c3b796ef79 add maps app (doesn't do much yet) 2024-07-22 22:25:25 +01:00