Vehicles by kind with heading ticks and status-ring clusters, a route planned vs driven with numbered stops and depot, and the Fleet map key.
$ npx shadcn@latest add @highcommand/fleet-map-layersCopies the source into your project and pulls in what it needs (3 other items). First time? Add the registry to components.json.
The Fleet map's vehicles: a silhouette per kind (van, box truck, tractor) on a status chip, with a heading tick while moving; status-ring clusters where they bunch up; the selected vehicle ringed in the accent.
vehiclesrequiredreadonly FleetMapVehicle[]—The vehicles to draw; those with no fix (null lat or lng) are skipped.
selectedIdstring | nullnullId of the open vehicle: ringed in the accent.
onSelect(v: FleetMapVehicle) => void—Called with the vehicle when one is clicked.
clusterbooleantrueStatus-ring clusters below zoom 11. Default true (off for a small map in a panel).
nowstring—"Now" (ISO) for the card's fix age.
renderCard(v: FleetMapVehicle) => ReactNode—Your own card (default VehicleCard).
<FleetRoute />2 propsOne route on the Fleet map: the planned path dashed, the path driven solid (both in the route's status), numbered stops (hollow until delivered, the status shape on the rim) and the depot.linesreadonly Feature[][]The planned and driven line features from routeFeatures().
stopsreadonly Feature[][]The stop and depot point features from routeFeatures() or stopFeatures().
<FleetLegend />0 propsCompact key to the Fleet map's shapes, bottom left.No props.
vehiclePath(ctx: CanvasRenderingContext2D | Path2D, kind: VehicleGlyph): voidSide-on silhouettes facing right, inside a 16 x 12 box centred on the origin.
drawVehicle(kind: VehicleGlyph, ring: string, fill: string, status: BadgeShape): ImgA vehicle chip: panel disc, status ring, status silhouette, the status's shape at the top right (none on track, a dashed ring when not on a route).
drawHeadingTick(): ImgThe heading tick: a small wedge pointing up, white so the map tints it (SDF) and rotates it to the vehicle's heading.
drawStop(ring: string, panel: string, status: BadgeShape, done_: boolean): ImgA stop marker: a numbered disc (the number is the symbol's text). Delivered stops are filled with the status colour, stops still ahead are hollow; the status shape sits on the rim, so a late stop reads without colour. `kind` pickup is square-cornered.
drawDepot(stroke: string, fill: string): ImgThe depot: a squared hub mark, never a status colour.
Install this free piece now; the Pro pieces drop in on top of it, in the same app. Pro is $79 once.