The collapsible map key with the risk-contours switch, the map filter bar (lens, status, layers, mode, account) and map padding under glass panels.
$ npx shadcn@latest add @highcommand/map-chromeCopies the source into your project and pulls in what it needs (1 other item). First time? Add the registry to components.json.
Compact key to the map's shapes, bottom left.
contours{ on: boolean; onToggle: () => void }—The risk contours switch, at the key's foot (absent: no switch).
defaultOpenbooleanfalseOpen until the person chooses otherwise on this device.
<FilterBar />9 propsMap overlay: what the map shows (the exception lens or every shipment), one button that says what is on the map ("54 shipments", "12 of 54") and opens every filter, with a count of those set, and Fit.allrequiredreadonly FilterableShipment[]—Every shipment before filtering: the mode and account choices and the status counts come from it.
filtersrequiredFilters—The filters now in force (NO_FILTERS for none).
onChangerequired(f: Filters) => void—Called with the new Filters when the person changes direction, status, mode or account.
shownrequirednumber—How many shipments pass the filters, for the "12 of 54" count (use applyFilters).
onFitrequired() => void—Called when Fit is clicked: frame the map on the shipments.
actionsReactNode—Extra controls placed after Fit in the bar.
lens{ on: boolean; onChange: (on: boolean) => void; allLanes: boolean; onLanes: () => void } | null—The exception lens or the full picture, and (in the lens) one switch for every lane at full weight.
belowReactNode—Under the filters, over the map's top left: a brief, or a playback narration.
fleet{ onRoute: number; total: number; on: boolean; onToggle: () => void } | null—The "Own fleet" layer chip (absent with no fleet): vehicles on route now, and whether the layer shows.
applyFilters<T extends FilterableShipment>(all: readonly T[], f: Filters): T[]The shipments that pass every filter: direction, mode, account, and any of the chosen statuses (none chosen means all).
filterCount(f: Filters): numberFilters that differ from the default, for the button's count: direction, status, mode, account.
useMapPadding(getMap: () => Map$1 | null, left: number, right: number, on: boolean): voidKeep what the map frames in the part of it that is not under a glass panel. The map's own padding follows the panels' widths, eased over 300ms, so a selected shipment the map flew to sits in the open part, not under the glass. The ease waits for any camera move in flight (a fly to the selection) and is made again when that ends: an ease started over a move would stop it, and one started under it would be stopped by it, leaving the padding half done. Off while the hologram viewer is out (it takes the camera off the map and puts it back as it was), and on a phone.
useCommandMapPadding(left: number, right: number, on?: boolean): voiduseMapPadding for the map of the surrounding <CommandMap>: `left` and `right` are the widths of the panels over its sides.
Install this free piece now; the Pro pieces drop in on top of it, in the same app. Pro is $79 once.