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

PMTiles route

Next.js route handler serving .pmtiles from PMTILES_DIR with HTTP Range.

Free · MITRoute@highcommand/pmtiles-route2 files
See it in context
Browser
MapLibre + pmtiles
Request →
…
← Route handler
…
Checking this server…
    parseRange(header, 67,108,864)
    206 · Content-Range: bytes 0-16383/67108864 · 16,384 bytes

    Installation

    $ npx shadcn@latest add @highcommand/pmtiles-route

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

    API

    3 functions
    • parseRange(header: string | null, size: number): { start: number; end: number; } | "invalid" | null

      Parses a single-range HTTP `Range` header ("bytes=0-99", "bytes=100-", "bytes=-500"). Returns null when absent or not a single bytes range (unknown units and multi-ranges are ignored, so the caller serves the full file: RFC 9110 §14.2), "invalid" when unsatisfiable.

    • GET(req: Request, ctx: { params: Promise<{ file: string; }>; }): Promise<Response>

      Serves the whole .pmtiles file, or the bytes of a `Range` request (206), from `PMTILES_DIR`; 404 for an unsafe or missing name, 416 for a bad range.

    • HEAD(req: Request, ctx: { params: Promise<{ file: string; }>; }): Promise<Response>

      Same headers as GET (size, etag, range support) with no body, for MapLibre/PMTiles size probes.

    Dependencies

    npm
    None beyond React
    Builds on
    Nothing else in the kit
    PreviousPMTiles basemapNext Trip hologram

    On this page

    PreviewInstallationAPIDependencies