Map
Vehicle positions
Live vehicle markers, bearings, staleness and selection.
Live trains and buses on the map for the open stop. Markers follow the Map pattern.
Marker
A pin in the route colour whose tip points the way of travel, with an open chevron inside the tip and the Signal glyph upright at the centre. A line fill under 3:1 on Map ground adds a hairline in the line's map keyline outside the white keyline. Every example on this page is drawn by vehicleMarkerSVG in the map module (contract); vehiclePresentation returns the same SVG for the app.
To change the marker: edit vehicle and states.vehicle in tokens/map.json, run go generate ./..., and update the locked SVGs in tests/fixtures/vehicle-*.svg in the same change.
Bus and train
Light map
Dark map
Selection
Selected grows to 1.25× about the centre, with no halo. Other vehicles leave the map while one is selected.
Light map
Dark map
Bearing
Heading in degrees, north 0, clockwise. The pin and chevron turn about the circle centre; the glyph stays upright. With no heading the marker is a plain circle.
Light map
Dark map
By zoom
From z13 the full marker, 23 px at z13 growing to 25 at z18. Below z13 the far marker: no glyph or chevron, the pin alone, 8 px at z9 to 13 at z13, and a plain circle with no tip at z12 and below. Sizes interpolate between stops, so the swap at z13 is the only jump; it crossfades over 150 ms (instant under Reduce Motion). A selected vehicle keeps the full marker at every zoom. Sizes shown are the body in px.
Light map
Dark map
On the map
Light map
Dark map
Rules
| Part | Rule |
|---|---|
| Units | Pin units: the circle radius is 12 (vehicle.pin.radius), half the body, so the pin scales with the body. |
| Body | Circle in the line colour (train) or Brand (bus): 23 pt at z13, 24 at z15, 25 at z18 (vehicle.body). Its centre is the map anchor and the rotation point. |
| Far | Below z13 (zoom.vehicles): the pin alone, no glyph or chevron, 8 pt at z9, 10 at z11, 13 at z13 (vehicle.far.body), its tip 1.5 × radius and keyline 3 (vehicle.far). A plain circle at z12 and below (vehicle.far.circleMaxZoom). Crossfades to the full marker over 150 ms (vehicle.far.crossfade). |
| Tip | Tangent lines from the circle meeting 1.35 × radius from the centre (vehicle.pin.tip), rounded over the last 2.2 (vehicle.pin.tipRound). Points the way of travel. |
| Keyline | 1.5 of Always White outside the pin (vehicle.keyline), the same in light and dark. |
| Chevron | Open V in the glyph colour, round caps and join: 6 wide, 2.75 deep, 1.6 stroke, its apex 4.6 in from the tip (vehicle.chevron). |
| Glyph | Signal train or bus icon, 0.57 × the body (vehicle.glyphRatio), upright at the centre, on the full marker only. White on most lines, Always Ink on Blue, Pink and Yellow; On Brand on buses. |
| Selected | Scales 1.25 (states.vehicle.selected.scale) and keeps the full marker at every zoom. No halo, shadow or glow. |
| Canvas | Square, centred on the circle, sized for the tip at any heading, so the marker never resizes as it turns. |
| Never gray | No vehicle is drawn gray or Muted. A train whose line is unknown is Ink with a Paper glyph. |
| Stale | Drawn like a live vehicle: solid, its own colours, never faded. VoiceOver adds “Location may be out of date”. |
| No heading | A plain circle with no tip or chevron, rather than imply a direction. |
| Route number | Not drawn on the marker: it is in the arrival row and the VoiceOver label. |
Scope
| Rule | Behavior |
|---|---|
| Shown | Only while a stop sheet is open: every vehicle on that stop’s routes at every zoom: the far marker below z13, the full marker from z13 (see By zoom). With no stop open the map draws no vehicles. |
| Snapping | Trains sit on their own lane, buses on their route. A vehicle with no line geometry to snap to is drawn at its reported point. |
| Tap an arrival | Tapping an arrival row selects its vehicle and pans the map to it, keeping zoom, placed in the map area above the visible sheet. With no live vehicle for that arrival, a light haptic and no camera move. |
| Budget | The train and bus CTA keys each allow 100,000 calls a day. The bus vehicle quota guard doubles the refresh interval at 70% and serves cached positions only at 90%. |
| Not interactive | Vehicle markers take no taps. There is no vehicle callout, Approaching strip or +N stacking. |
Freshness and selection
| State | Marker |
|---|---|
| Live · 0–60 s | Solid body in the line color (train) or Brand (bus). |
| Stale · 61–120 s | Unchanged on the map: solid, its own colors, in place; never faded or gray. VoiceOver adds “Location may be out of date”. |
| Gone · > 120 s | Removed. Never drawn past 2 minutes. |
| Selected | The marker scales to 1.25 (selection) on a 0.3 s spring with no bounce (stations use the same spring). Instant under Reduce Motion. |
Motion
| Event | Standard | Reduce Motion |
|---|---|---|
| New fix | Slide along the snapped geometry; the pin and chevron turn along the shortest arc; the glyph stays upright. | Jump |
| Effects | No pulse, trail, shadow or glow. | Same |
Accessibility
| Element | VoiceOver label |
|---|---|
| Train marker | “Red Line train to Howard. Next stop Belmont, 2 minutes. Updated 15s ago.” Not a button. |
| Bus marker | “Route 22 bus to Harrison. Delayed. Next stop Clark and Armitage, due. Updated 1 min ago. Location may be out of date.” “Delayed” and “out of date” only when they apply. |
| Updates | Position refreshes never post announcements. |