For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
When to use
- Dispatch and fleet pages where the work happens on a real street map: vans, routes, stops and their exceptions
- Location operations that need analytics beside the map and actions on what the map shows
When not to use
- Stock, warehouse and shipping fulfillment with no live map of vehicles or routes: use the Inventory blocks
- Appointments booked by time slot and staff member: use the Bookings blocks
- A 3D model of a site, a machine or a venue rather than a street map: use the Digital Twin blocks
Agent notes
- Blocks render with
maplibre-gl6 and OpenFreeMap tiles: no key, commercial use allowed, attribution stays visible on the map - The map-prefixed files in each block are a domain-free map kit you can lift whole; pass
mapStylesto swap the basemap - Each block keeps the Heron Run world in its own
data.tswithNOWas the frozen clock; swap the records, keep the rules
Third-party API docs
- Recharts v3: API reference, docs, used by 1 of 1 blocks
- TanStack Table v9: API reference, docs, used by 1 of 1 blocks
- MapLibre GL JS v6: API reference, docs, llms.txt, used by 1 of 1 blocks
- cmdk v1: API reference, docs, used by 1 of 1 blocks
- Sonner v2: API reference, docs, used by 1 of 1 blocks
https://reui.io/blocks/solutions/map.mdsearch({ query: "map", type: "block", category: "map" })Map Blocks for React: Live Fleet Dispatch on a Street Map
The dispatch map runs a demo same-day delivery company, Heron Run, out of its SODO depot in Seattle on a Thursday afternoon: 24 vehicles from minivans to box trucks, 13 drivers and 9 routes with 82 stops in neighborhoods from Ballard to West Seattle. A stop's ETA is the road miles left at 17 mph plus 5 minutes per door, and the stop is at risk once that ETA passes the end of its 2 hour window. An electric van is range short when its range is under 1.1 times the miles it has left, depot included, and a cold box above 41°F raises an exception. The simulation drives each van at its own pace at 1x to 120x real time and closes the stops it reaches, and 5 minutes in a brake warning stops V-09 for 45 minutes.
The map is MapLibre GL on OpenFreeMap tiles, with no API key, a basemap that follows light and dark mode and its attribution kept visible. A floating ReUI Frame panel holds the fleet overview or the selected van, a Command palette on ⌘K or Ctrl+K finds vehicles, drivers, stops, merchants and areas, and the list view is a ReUI Data Grid with Filters and a Cascader columns menu. A stop is failed, reassigned or rescheduled in shadcn Sheet and Dialog overlays, a ReUI Timeline lists the exceptions, and every write confirms in a Sonner toast with an Undo, except a sent message.
All Map Blocks
Open any block on its own page for a live preview, the components it is built from, and the install command.
- Dispatch Map Fleet Dispatch Map with Live Routes, Van Detail Panel, Stop Reassignment and Van List
What the Map Blocks Cover
- Live fleet map Each van glides along its route with artwork for its body type and a dot in the tone of its worst open exception. Route lines, stop dots and van labels toggle from the layers menu, the camera can follow a van, and a right click opens its actions.
- Fleet panel A donut splits the day into delivered, failed, at risk and to go stops beside the on time rate and the time the last van gets back. Open exceptions group by kind, deliveries per hour run from 1 PM to 5 PM, and every van counts as on or off the road.
- Van and stop detail A selected van shows its range against what the route still needs, its load and, on a reefer, its cargo temperature, then every stop in road order with its window and ETA. The next stop closes as Delivered or Failed with a reason, and an open stop moves to a later window or another van.
- Reassign and reschedule Reassign ranks the vans by the miles each would add at its cheapest point in the route, on time first, and names why the rest cannot take the stop: breakdown, maintenance, charging, no driver, no cold box, full or low range. Reschedule offers each later 2 hour window that has not closed and puts the stop last on its route.
- New deliveries New Delivery waits for a click on the map, then takes the recipient, merchant, address and note, a 2 hour window, 1 to 20 parcels and cold chain, and offers the 3 vans that fit best.
- Exceptions Breakdowns, late stops, low range, cargo temperature and failed attempts list newest first on a timeline, each with its fix (Reassign, Reschedule or Message Driver) beside View and Acknowledge. An acknowledged exception stays listed until its cause clears, and one the clock raises arrives as a toast.
- Vehicle twin and remote controls The van sheet steps through the fleet in Overview, Vehicle, Controls, Route and Activity tabs. Overview draws the vehicle in iso or 2D with the parcels on board, and Controls sets the drive mode, a 45 to 75 mph speed governor, the charge limit or refuel alert, the cold setpoint and 3 safety switches.
- Van list A paginated grid of every van, searchable by van, plate, driver or area, with Filters on status, vehicle, driver, powertrain, charge, alerts and at risk. Vans are added, edited and retired from here, and a van with open stops cannot be retired.
Related Shadcn Block Categories
- Inventory Stock, warehouse, reorder, movement, count, and supplier visibility pages.
- Digital Twin Interactive 3D scenes of physical places on React Three Fiber, a stadium sector picker and a live kart race, each synced with a 2D plan.
- Bookings Appointment, reservation and service-business admin pages for consultants, clinics, salons, hotels, and local services.
- Dashboard Dashboard components and layouts that combine stats, charts, and tables into a complete overview screen.
- Sheet Sheet panels for record details, editing forms, notifications, and side drawers that keep users in context.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (305) Browse 305 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (53) Browse 53 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (83) Browse 83 Shadcn Solutions blocks across 13 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
Does the block track real vehicles or optimize routes?
How are ETAs, at risk stops and range worked out?
How does Reassign choose the van?
Can I undo a dispatch action?
How do I load my own fleet?
What does the block install and need?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.