All templates

Clustered points

Sixty illustrative points around Montréal in clusters that show their count. Click a cluster and the map zooms in until it splits.

Map + cluster layer · Montréal
Example

Sample data on real Canadian places. The preview runs on unmap's demo key.

Add it with the unmap CLI

Installs the component, any sample data it ships and the shadcn components it uses. React projects only; in a Vue project it stops before changing anything.

npx @unmap/cli add map-clusters-01

Add to your React app

npx shadcn@latest add https://registry.unmap.dev/r/map-clusters-01.json

For React apps with shadcn and Base UI already set up. The CLI adds the required components and packages.

Render the component

import { MapClusters } from "@/components/unmap-map-clusters"

<MapClusters apiKey="um_live_..." />

What it includes

  • Built on cluster-layer
  • Illustrative points included

Example

One registry item on a real Canadian place, ready to copy into a React app.