High Command
LibraryTemplatesGet startedPricing
Get Pro · $79

Guide

Browse everythingGetting startedThemingYour data

Site

HomeTemplatesPricingChangelog

Templates 4

Command centerProFleetProCustomer trackingProField servicePro

Ops and shell 9

App shellProOps modelProAttention queueProMorning briefProShift handoverProLane panelProOwn-fleet partsProAgent action barProCustomizable dashboardPro

Map 17

PMTiles basemapPMTiles routeTrip hologramProBasemap styleMap geometryMapLand texture and dot lensProException heatmap and risk contoursProLane arcsProShipment layerOwn fleet layerProFleet map layersCurated place labels and sitesRoute traceEdge chipsProMap key, filters and paddingMap kitPro

Time and trips 11

Time and trip modelsEvent fieldProIn-transit rowsProImpact lineProActivity barProReplay clockTime controlPlayback overlayProTrip timetableProStage rowWeek cursorPro

Figures, charts and tables 14

Sourced valueKey-figure tileFigure groupPart barBand sparklineKPI stripProChart kitPop barWaterfall cascadeMargin chartsPro13-week cash ladderProWork tableProField railProHorizon gridPro

Zones and dispatch 10

Zones modelDispatch modelProGeofence layerGeofence eventsGeofence drawProService ringsDensity heatmapJob queueProAssign dialogProStop listPro

Design system 3

ThemeShared helpersUI primitives

Routing 3

Offline road routerAustin road graphAustin areas

Libraries 2

Fleet coreRoute core
High Command

Map, fleet and ops-console components for React. Built in-house, copied into your app with the shadcn CLI.

Product

  • Library
  • Templates
  • Pricing
  • Changelog

Build

  • Get started
  • Accessibility
  • Trip hologram

Templates

  • Command center
  • Fleet
  • Field service

New pieces by email. A short note when a release lands.

One email per release. Unsubscribe any time.

© 2026 High Command Pro licenseTermsPrivacyRefundsMap data © OpenStreetMap contributors · OpenFreeMap
Library/Map

Map key, filters and padding

The collapsible map key with the risk-contours switch, the map filter bar (lens, status, layers, mode, account) and map padding under glass panels.

Free · MITComponent@highcommand/map-chrome3 files
See it in context
Customize

Installation

$ npx shadcn@latest add @highcommand/map-chrome

Copies the source into your project and pulls in what it needs (1 other item). First time? Add the registry to components.json.

Props

<MapLegend />

Compact key to the map's shapes, bottom left.

PropTypeDefault
contours{ on: boolean; onToggle: () => void }—

The risk contours switch, at the key's foot (absent: no switch).

defaultOpenbooleanfalse

Open until the person chooses otherwise on this device.

Also in this item 1

<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.
PropTypeDefault
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.

Helpers4 exported functions
  • 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): number

    Filters 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): void

    Keep 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): void

    useMapPadding for the map of the surrounding <CommandMap>: `left` and `right` are the widths of the panels over its sides.

Dependencies

npm
lucide-react
Builds on
Map
Pro pieces built on this
Map kit ProCommand center Pro

Install this free piece now; the Pro pieces drop in on top of it, in the same app. Pro is $79 once.

PreviousEdge chipsNext Map kit

On this page

PreviewInstallationPropsDependencies