All apps

Build a field service map with React and unmap

How the unmap Field Operations app is put together: work orders and crews, a simulated task lifecycle, routes that say when they end short of a site, and switchable context layers.

Field Operations is a map for a Canadian field service team. Filter work orders by category and status, read them under their crew, step a task through its lifecycle, route from the depot to a site, and switch context layers on and off. It runs at apps.unmap.dev/field-operations, and its source is a standalone Next.js project you can clone and run with your own key.

The operation is synthetic and the app says so: the depot, the crews, the ten sites around Drayton Valley, Alberta and their work orders are made up, and the lifecycle is simulated. The map, the routes and the context layers are live unmap.

What it does

  • Work orders and crews: search by ID or title, filter by category and status, and read them under their crew, high priority first.
  • A simulated lifecycle: scheduled, dispatched, on site, complete, one step at a time, each step logged and labelled simulated.
  • Routes that admit where they end: the road route from the depot to a site, by car. A private road or a yard is often not in the road graph, so when the route ends at the nearest road instead of the site, the API's ENDPOINT_RELOCATED warning is shown beside it with the distance.
  • Context layers: Aboriginal lands, municipal boundaries and protected areas, each switchable.

Built from the registry, unmodified

The map, the layer legend, the route line and the markers are registry items copied in unmodified. Installing the same pieces into your project is one command:

npx @unmap/cli add map layer-legend route-line marker-popup map-controls

What it does not do

  • Real operations. No customer or operational data, and no real crew is dispatched or notified.
  • Compliance. It makes no operational, regulatory or safety claim.
  • Every road. Private roads, yards and unmapped site access are not routable, so the last stretch to a site may not be on the route.

Run it yourself

You need Git, Node.js 24, pnpm and a browser key from the dashboard that allows http://localhost:3206.

git clone --depth 1 https://github.com/unmap-dev/field-operations.git
cd field-operations
pnpm install --frozen-lockfile
cp .env.example .env.local

Set NEXT_PUBLIC_UNMAP_KEY in .env.local to your key, run pnpm dev, and open localhost:3206. The operation ships in data/work-orders.sample.json; parseOperation() in lib/work-orders.ts checks a file of your own. The Canadian overlays example covers composing the context layers.