Skip to content

spatial-monorepo


spatial-monorepo / core/src / RouteOptions

Interface: RouteOptions

Defined in: packages/core/src/layers/WayfindingLayer.ts:38

Extended by

Properties

accessible?

optional accessible?: boolean

Defined in: packages/core/src/layers/WayfindingLayer.ts:52

When true, renders the route in the accessible color (#2563eb blue) and a wider stroke to visually distinguish wheelchair-friendly routes. Overrides color if both are provided.


color?

optional color?: string

Defined in: packages/core/src/layers/WayfindingLayer.ts:39


destinations?

optional destinations?: RouteWaypoint[]

Defined in: packages/core/src/layers/WayfindingLayer.ts:46

Multi-destination mode — ordered list of destination waypoints (2–10). When provided, waypoint markers are rendered at each stop's actual coordinates, in the given order.


style?

optional style?: NavigationRouteStyle

Defined in: packages/core/src/layers/WayfindingLayer.ts:61

Visual style for the route line.

  • flat (default): solid line
  • tapered: line-gradient fades from full-opacity to transparent toward destination
  • animated-flow: dashed line pattern suggesting directional movement
  • marching-dots: round-capped dots that flow along the path (issue #471, Haltian Empathic Building reference) — cheap, legible on kiosk displays

width?

optional width?: number

Defined in: packages/core/src/layers/WayfindingLayer.ts:40

Released under commercial licensing.