Skip to content

Signal

Map

Map marks

Station marks, bus stops, Loop chevrons, walking transfers, the selected way ahead and the location markers.

Shared marks from @chitransit/signal/map. Render all states in the playground.

Station marks

One white circle per served lane, white bridges and a single dark union outline, Always White and Always Ink in both themes. Circles grow with the lane, a little wider than it, so a chain on touching lanes still reads as separate circles. Linked stops of one station join with the same bridge. A selected station adds an Always Ink dot inside each of its circles. A straight cardinal-axis chain, never angled relative to the map axes. Unserved or hidden lanes split the chain. The connected circles and bridges remain the same features at every visible zoom; only marker size varies.

One served lane, z14.

Three touching served lanes: one connected mark, z14.

Selected: an Always Ink dot inside each circle, z14.

Bus stops

Brand rounded squares with a Paper keyline fade in from z14.8 and reach 32 px at z18. A known direction adds a white arrow inside the square pointing the way of travel; unknown directions stay plain. From z17 every stop shows its Always Ink name in an Always White halo, at 80% size growing smoothly to full size at z18. From z18 route-number capsules with an Always White inside stroke follow: one gap under the name, four to a row, up to eight with the last as +N. At busy corners collision keeps text apart: the selected stop wins, then names, then capsules, and station labels stay on top. A selected stop grows to 1.5×, shows its name and capsules at every zoom, and the train network recedes. All detail fades in continuously.

Loop directions

Heavy white chevrons, half the previous density, carried by a line pattern on the same lane offset as the colored line. Only authoritative one-way Loop lanes get arrows.

Walking transfers

A thin black-and-white ladder, off by default. The app owns sourced transfer data and station-page links.

Selected vehicle

Signal teardrop at a constant size, upright route glyph (always shown), an open chevron in the glyph colour inside the tip pointing the way of travel, and ETA chip. Thick path ahead, passed stops muted, next stop emphasised. Named states.

Location markers

Your location is a Location dot with an Always White keyline, 20 pt in both themes. The Nearby placeholder marks where Nearby searches from when the camera is off the rider, at the visible viewport centre (never the screen centre beneath a sidebar), from z12: a monochrome bullseye, so it never reads as your blue dot. On a light map an Always Ink centre and ring in Always White, on a dark map the same inverted, a constant 21 pt. Drawn by userLocationSVG and placeholderMarkerSVG.

When the camera settles and Nearby refreshes, the placeholder pulses once: a disc of its centre colour grows to 2.4× and fades over 0.7 s. Your location never pulses. No pulse under Reduce Motion.

Light map

Your locationNearby placeholder

Dark map

Your locationNearby placeholder

Contracts

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

Contract: components/loop-chevron.yaml. States are drawn live by transit.js.

Contract: components/map-centre-placeholder.yaml. States are drawn live by transit.js.

Contract: components/walking-transfer.yaml. States are drawn live by transit.js.