MapPath

A route line drawn across a parent Map — the 'here's how you drive in' overlay. Renders editor chrome only; the parent Map draws the line on the live site. Use for businesses that are hard to find (set back from the street, behind another building, shared lot).

Required Props: id, path

Structure

Child of Map, alongside MapPoint. Pair a MapPath (the route) with a MapPoint (the destination pin) so the map shows both the way in and the endpoint. All styling goes in props.className as a single Tailwind utility string.

Properties

PropertyTypeDescriptionExamples
pathstring
The route, as `lat,lng` pairs in travel order, one per line (semicolons and pipes also work). Two or more points are required or nothing draws.
34.16124,-118.30049 34.16143,-118.30046 34.16158,-118.30041
colorstring
Stroke colour. Prefer a theme token so the route matches the palette.
Default: "var(--color-primary)"
var(--color-primary)var(--color-accent)
weightnumber
Stroke thickness in px
Default: 4
-
opacitynumber
Stroke opacity, 0-1
Default: 1
-
dashedboolean
Draw as a dashed line. Dashes read as 'a route to follow' rather than a boundary.
Default: true
-
labelstring
Short caption drawn on the map, centred halfway along the route. Rendered with a halo so it stays readable over tiles. Keep it to a few words.
Default: ""
Enter hereDrive to the backAround the corner
titlestring
Accessible name for the route. Not drawn on the map — use `label` for visible text.
Default: ""
-
canDeleteboolean
-
Default: true
-
canEditNameboolean
-
Default: true
-
customobject
-
-
classNamestring
Tailwind utility classes string. Mobile-first: unprefixed = base, md: = 768px+, sm: = 640px+, lg: = 1024px+. Includes layout, spacing, surface design, and typography.
-
rolestring
-
-
aria-labelstring
-
-
aria-hiddenstring
-
-
aria-describedbystring
-
-
aria-livestring
polite | assertive | off
-
-
rootobject
-
-

Examples

Drive-in route

{
  "path": "34.16124,-118.30049\n34.16143,-118.30046\n34.16158,-118.30041",
  "label": "Enter here",
  "title": "Route in from S. Victory Blvd",
  "dashed": true
}