Skip to content

Signal

Components

Bus marker

A live bus (vehicle) on the map: a Brand body with a bus glyph, a heading indicator and the route number in a tag above or below. Trains share the structure with a line-color disc.

Contract: components/bus-marker.yaml. States are drawn live by transit.js.

iOS app specification

The app's rendering of this component, from the v3 spec.

Map markers

Bus stops are Brand rounded squares. Stations are circles when zoomed out and the station icon from zoom 15.5. Sizes ramp with zoom. Zoom tiers live in Map.

BusFrom zoom 17.5: square 22 → 30 (20 shown), radius 25%, Brand fill, 2pt Paper keyline, bus glyph at 52%. Zoom 17–17.5: square 10.5 → 19, radius 20%, 1pt Paper keyline, no glyph. Hidden below 17. Selected turns the keyline Ink, with a 1 Paper hairline inside it
StationHidden below zoom 15. Zoom 15–15.5: a circle (9 → 12.5) with a 1.5pt Paper keyline, in the line color at a one-line station and gray (Card 2) at a multi-line station. From zoom 15.5: the station icon inside a 2pt Paper keyline, 20 → 56 high (26 shown), width from the line count. See Station icon.
SelectionThe keyline turns Ink at the same 2, and a 1.2 scale. A selected small marker shows its icon
Hit area44 × 44 minimum around every marker
Location20 dot with 18 halo
ElevationNo drop shadow or glow on bus or station markers; a selected marker only turns its keyline Ink.

Variants

One marker; no variants. The route sets the color (Brand for a bus, the line color for a train, Ink for an unknown line); no bearing drops the tip and chevron, and far zooms drop the glyph. The options are selected, stale (which changes only the label) and size. Nothing else exists.

// Do
const T = window.ChiTransitTransit;
T.vehicleEl({ routeType: "bus", routeId: "22", destination: "Howard" }, 90, { size: 25, stale: isStale });
// Don't: fade or gray a stale vehicle
marker.style.opacity = "0.4";