You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both map cards colored their routes by elapsed time with nothing to say so
— a reader could see two marks differ but not by how much or which way,
which makes the gradient decoration rather than encoding. The source
notebooks had this (branca's colormap.caption); the port had dropped it.
Adds GeoLegend to the contract and a `legend=` param to geo(): an ordered
low→high color ramp with min/max labels, plus free-form swatch items for
things a ramp can't express. schedule-adherence-map uses those items for
its dashed "Planned (GTFS)" vs solid "Measured (GPS average)" distinction,
which previously only existed in prose under the chart.
Also swaps the basemap to CARTO's dark tiles when the page is in dark
mode, tracked via a MutationObserver on the theme attribute plus the
prefers-color-scheme media query. A blinding white map inside a dark card
was the one part of the dashboard that ignored the theme. CSS-inverting
the tiles was the alternative and is worse — it makes the map's own
labels unreadable.
Verified in a real browser, light and dark: legend text correct on both
map cards, and the tile host actually switches
(tile.openstreetmap.org → basemaps.cartocdn.com).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments