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

Fleet map layers

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.

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

Installation

$ npx shadcn@latest add @highcommand/fleet-map-layers

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

Props

<FleetVehicles />

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.

PropTypeDefault
vehiclesrequiredreadonly FleetMapVehicle[]—

The vehicles to draw; those with no fix (null lat or lng) are skipped.

selectedIdstring | nullnull

Id of the open vehicle: ringed in the accent.

onSelect(v: FleetMapVehicle) => void—

Called with the vehicle when one is clicked.

clusterbooleantrue

Status-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).

Also in this item 2

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

Helpers5 exported functions
  • vehiclePath(ctx: CanvasRenderingContext2D | Path2D, kind: VehicleGlyph): void

    Side-on silhouettes facing right, inside a 16 x 12 box centred on the origin.

  • drawVehicle(kind: VehicleGlyph, ring: string, fill: string, status: BadgeShape): Img

    A 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(): Img

    The 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): Img

    A 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): Img

    The depot: a squared hub mark, never a status colour.

Dependencies

npm
lucide-react
Builds on
MapShipment layerMap geometry
Pro pieces built on this
Map kit ProCommand center ProFleet Pro

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

PreviousOwn fleet layerNext Curated place labels and sites

On this page

PreviewInstallationPropsDependencies