Driving bar after the research: four 76 px buttons (zoom ±, 2D/3D, route overview), one Follow button bottom left shown only while the map isn't following, night and exit off the bar; research on day/night and on driving buttons (Garmin aviation/marine/zūmo, ships' ECDIS/S-Mode, Android Auto) in docs/design.adoc, its follow-ups in TODO
CI / check (push) Successful in 21s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-12-01 02:02:55 +01:00
1 parent 9b797fd48c
commit 0eb9d05cdc
5 files changed
+211 -36

No files matched your search

+129
View File
@@ -100,6 +100,135 @@ The driving mode (`driving.js`, "Drive" in the topbar) is the cockpit's
input side: big band-black buttons down the map's left — follow, zoom,
2D/3D, night, the route overview — and the planning sidebar hidden.
=== How others switch day and night (research, 2026-12-01)
[cols="1,3"]
|===
|Who |How
|Garmin G1000 / G3X (aviation)
|Color scheme *Day / Night / Auto* apart from the *backlight*, which a
photocell sets on its own (a curve between a minimum and maximum, and a
time constant so it doesn't jump), or the aircraft's dimmer bus, or by
hand (down to 0.22 % on the PFD).
|Garmin GPSMAP (boats)
|Color mode Day / Night / Auto (by the time of day or the light outside);
the night scheme itself selectable: *full color, red and black, or green
and black*; the backlight a setting of its own; display settings shared
with the other displays over NMEA 2000. Night charts "in muted tones
with enhanced contrast".
|Raymarine (boats)
|Night mode: red text and icons on dark backgrounds; warns that going
back to Day at night jumps to full brightness and spoils night vision.
|Garmin zūmo (motorbikes)
|Day / Night / Auto (by the time of day), brightness by hand — no
light sensor found in the manuals.
|Ships (IMO MSC.191(79), IEC 62288, S-52)
|Colors and brightness for daylight, dusk and night, readable everywhere
on the bridge "with due consideration to the night vision" of the watch;
color never alone (size, shape, orientation too), red for alarms.
Furuno: Day / Dusk / Night palettes, each in a gray or blue variant, at
about 110 / 50 / 5 cd/m²; JRC: Day Bright, Day Whiteback, Day Blackback,
Dusk, Night.
|Android Auto / CarPlay (cars)
|Automatic by the car's headlights or its light sensor, Day / Night by
hand; known to flip in tunnels and under bridges.
|===
What it means for us:
* *Colors and brightness are two controls.* Everyone keeps the palette
(which colors) apart from the backlight (how bright); Night at ~5 cd/m²
is a backlight thing — CSS can't get a lit display that dim. The car's
display's backlight (DDC/CI or the panel's own dimmer) wanted for that.
* *Auto by what the vehicle knows:* the sun today; the headlights from
the car's CAN once they're on the bus (as Android Auto), a light sensor
on a node later (as the photocell) — with hysteresis, not flipping in a
tunnel.
* *A red night* (red/black) as Garmin's and Raymarine's option, for the
darkest roads.
* *One setting for all the car's screens* (Garmin shares it over NMEA
2000): the night mode the server's, not each browser's, when they're in
the same car.
* *No flash on the way back to Day* at night: the switch eased in.
Sources: Garmin G1000 manual (Display backlighting); Garmin G3X install
manual (photocell parameters); Garmin GPSMAP display settings and
"Changing the color mode" help pages; Garmin's "Navigate confidently in
the dark" blog; Raymarine display mode docs; Garmin zūmo 395/396 display
settings; IMO MSC.191(79) §5.3, §5.5; Furuno FAR-2107 / FE-800 and JRC
JAN-701B manuals; Google Maps / Waze help and 9to5Google on Android Auto.
=== Buttons while driving: how others do it (research, 2026-12-01)
Our driving bar (`driving.js`) came from OsmAnd's map buttons: seven
76×64 px buttons down the left (follow, zoom ±, 2D/3D, night, route
overview, exit). What the others do:
[cols="1,3"]
|===
|Who |How
|Android Auto (Google's car design guidelines)
|Touch targets at least *76×76 dp* (the distance to the head unit, quick
taps); content readable in *2 s*, a response within 0.25 s; the map's
*action strip at most four buttons* (pan, recenter, zoom in/out). Google
Maps: *recenter only appears once the map was moved* and goes when
tapped; the compass toggles heading-up / north-up; route overview,
sound (mute / alerts only) and report on the edges.
|Garmin zūmo XT (motorbikes)
|The rider *picks which buttons the map shows* (a wrench, top left); the
rest in a side panel from the bottom right; reviewers still find the
buttons small with gloves.
|Garmin G1000 (aviation)
|*Softkeys*: a fixed row of physical keys along the display's bottom
bezel, their labels drawn on the screen right above them, changing with
the page; concentric knobs for values. Nothing to aim at — the hand finds
the key.
|Garmin G3000 (aviation)
|Most input moved off the displays onto separate *touch controllers*
(GTC) on the pedestal, each driving a pane of the big displays; some
knobs and keys kept.
|Ships (ECDIS, IMO S-Mode MSC.1/Circ.1609)
|Trackball and a key panel with *dedicated keys* (dimming up/down among
them); S-Mode standardizes the terms, icons and hot keys of the common
functions so every bridge works the same.
|===
What it means for us:
* *Fewer buttons on the map*: four, not seven — zoom +, zoom −, the
view (2D/3D, heading-up/north-up), the route overview. Night is
automatic (and a topbar thing), "exit" is the topbar's Drive button
already.
* *Recenter only when needed*: "Follow" and "Back to the position" are the
same thing — one button, shown only while the map isn't following, in
one place.
* *76 px square* targets at least (ours are 76×64).
* *Softkeys for the CAN keypad* (Blink Marine style): its keys' labels
on the screen's edge next to them, changing with the screen — the G1000
way, no aiming while driving.
* *A second screen as the controller* (G3000's GTC): the tablet or phone
drives the cab's display (the shared trip already works that way for
the route).
* *Pick your buttons* (zūmo) — later, if four fixed ones don't fit.
Sources: Google's car design guidelines (sizing; map action strip);
Google Maps help and the Navigation SDK docs (recenter, compass,
overview); zūmo XT owner's manual and reviews (Motorcycle.com, Bennetts);
Garmin G1000 pilot's guide (softkeys, knobs); AIN and Aviation Consumer on
the G3000's GTCs; JRC JAN-701B and Kongsberg ECDIS manuals; IMO
MSC.1/Circ.1609.
== Typography
* Planning UI: the system sans; *National Park* (the router-carved