Dotted map
A dotted world with places on it and routes between them. Routes draw in once, then a short light runs along each in its direction. Choosing a place keeps its routes lit and dims the rest.
- Frankfurt to London
- Frankfurt to Virginia
- Frankfurt to São Paulo
- Frankfurt to Mumbai
- Frankfurt to Singapore
- Frankfurt to Tokyo
- Frankfurt to Sydney
When to use
- Where a team sits, which regions serve which, how a payment or deploy travels.
- A landing or status page that should say "global" with real places.
When not to use
- Values per country; use the choropleth.
- Exact geography; this is a 2.5° dot grid.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/dotted-map
Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
DottedMap
6 props
PropTypeDefaultDescription
label *string—Names the map, e.g. "Regions serving Europe".
places *readonly MapPlace[]—
routesreadonly MapRoute[][]
selectedstring | null—
onSelect((id: string | null) => void)—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-pressed and aria-label in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/dotted-map.mdThe index of every part is at /llms.txt.
More in Diagrams
GlobeA rotating globe with labelled points sized by value.ChoroplethA map shaded by value per region.Connection beamSources feed a hub and the hub feeds destinations, with light running along each curve in the direction data goes. Curves are measured from where the real nodes land, so labels can be any length. A link can be idle.