A walk or run on a map: any XYZ tiles or a vector basemap, no map library.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/route-map.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/route-map.jsonFree, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { RouteMap } from "@/components/ui/notchset/route-map";
/* a loop through a park on the page's paper (pass `tiles` for any XYZ provider, or `basemap` for your own vector map) */
const loop: [number, number][] = Array.from({ length: 121 }, (_, i) => {
const t = (i / 120) * 2 * Math.PI;
const r = 1 + 0.2 * Math.sin(2 * t + 1) + 0.09 * Math.sin(3 * t + 2);
return [51.5262 + (Math.sin(t) * r * 0.65 * 650) / 111320, -0.1527 + (Math.cos(t) * r * 1.25 * 650) / 69300];
});
export default function RouteMapDemo() {
return (
<div className="w-full max-w-[560px] overflow-hidden rounded-[var(--ns-radius-card)] shadow-[var(--ns-tile-shadow)]">
<RouteMap label="Walk route, about 3 km, a loop, fastest 1 km on the north side" points={loop} record={{ from: 20, to: 50, label: "Fastest 1 km" }} height={300} />
</div>
);
}components/ui/notchset/route-map.tsx
points–
readonly LatLng[]Required.
label–
stringRequired.
tiles–
MapTilesbasemap–
VectorBasemapkmMarkstrue
booleanrecord–
{ from: number; to: number; label: string } | nullthe stretch a record was set on (point indexes) and its words, "Fastest 2 km"
live–
booleana live route: no finish flag, the last point drawn as the current position
beat–
number | nulla live route's heart rate (bpm): the position's halo beats at it (living.ts); left out (or paused), it rests
height–
numberpx; left out, it follows the width (four fifths of it, 300 to 460)
fill–
booleantake the height of the box it sits in (a live screen's map), instead of `height`
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.