Skip to content

Dotted Map

A flat dotted world map with live markers, flowing arcs between points, tooltips and keyboard focus. One SVG path for the land, crisp at any size.

On this page

Examples

Agents online by region

Dots

Latency to the nearest edge

Hero background

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

markers
{ id, lat, lng, label?, description?, live?, value?, color? }[]
Default[]
Points on the map. A label gives a tooltip and a focusable button; live adds a pulse; value scales the size (by area).
arcs
{ from, to, color?, bend? }[]
Default[]
Curves between marker ids or [lat, lng] pairs, bowing north.
flow
boolean
Defaulttrue
A dash flows along each arc. Off with reduced motion.
flowDuration
number
Default2.6
Seconds for a dash to cross a typical arc; longer arcs take longer.
selected / onSelect
string / (marker) => void
The pressed marker and the click or Enter handler.
showLabels
boolean | "selected"
Defaultfalse
Write each marker's label beside it (from the sm breakpoint up; the selected marker always shows its name), or only the selected marker's.
projection
"equal-earth" | "equirectangular"
Default"equal-earth"
Equal Earth keeps areas true and looks rounder.
crop
[west, south, east, north]
Default[-180, -58, 180, 84]
Show a region; west above east crosses the antimeridian.
columns
number
Default128
Dots across the map.
dotSize
number
Default0.5
Dot size as a share of the grid pitch, 0.2 to 1.
shape
"circle" | "square"
Default"circle"
Dot shape.
color / dotOpacity
token | CSS colour / number
Default"foreground" / 0.28
Dot colour and opacity. Tokens follow the theme.
markerColor
token | CSS colour
Default"primary"
Default colour for markers and arcs.
graticule
boolean
Defaultfalse
Lines every 30 degrees.
renderer
"auto" | "svg" | "canvas"
Default"auto"
SVG draws every dot as one path; canvas takes over above 6,000 dots.
paused / label
boolean / string
Defaultfalse / "World map"
Hold the motion; the accessible name.
Keyboard
-
Tab reaches each labelled marker; arrow keys, Home and End move between them; Enter or Space selects.
Motion
-
Pulses and flows are CSS only, paused offscreen and in hidden tabs, and off with reduced motion. Nothing redraws unless the data changes.
Data
-
Land from Natural Earth 1:110m (public domain), the same 4.8 KB bitmap as the globe.

When to use

When to use

  • Where things are: agents or users online by region, edge locations, offices, with a tooltip and a click per point.
  • Routes between places, like latency to the nearest edge or hand-offs between regions, as calm flowing arcs.
  • A quiet hero background for a product that runs worldwide.

When not to use

  • Turning the world or zooming into streets: the globe turns: use Agent Activity Globe.
  • Exact numbers per region: a table is easier to compare: use Data Table.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Dotted Map to my app and wire it to my own data.
  • I need where things are: agents or users online by region, edge locations, offices, with a tooltip and a click per point. Set that up with the Knowns UI Dotted Map.
  • Which Dotted Map props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "dotted-map" }) and search_docs({ query: "dotted map" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Dotted Map, or found something off? We read every message.