Skip to content

spatial-monorepo


spatial-monorepo / core/src / BlueDotFollowMode

Type Alias: BlueDotFollowMode

BlueDotFollowMode = "position-only" | "position-and-heading" | "position-and-path-direction" | false

Defined in: packages/core/src/layers/RTLSLayer.ts:339

Issue #476 — Blue-dot camera follow modes (Mappedin-class API parity).

  • position-only: camera re-centers on the dot each tick; bearing untouched.
  • position-and-heading: re-centers and sets bearing to PositionUpdate.heading (device-orientation compass heading), when present.
  • position-and-path-direction: re-centers and sets bearing from the active Navigation path's tangent at the dot's position — supply SetupBlueDotOptions.getPathBearingDeg, typically (pos) => navigation.trackCoordinate(pos)?.pathBearingDeg (issue #475).
  • false: no camera follow at all (default — fully backward compatible).

Released under commercial licensing.