Skip to main content

TourAdvance

What finishes a tour step when the person does it.

  • layer-on: more data layers are on than when the step began.
  • projection-changed: the map shape differs from when the step began.
  • surface: the named surface is open (for example search, which opens when the search field takes focus).

This is a type alias exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { TourAdvance } from "@mapcairn/core";

type TourAdvance = {
readonly kind: "layer-on";
} | {
readonly kind: "projection-changed";
} | {
readonly kind: "surface";
readonly surface: SurfaceKind;
};

See also​

Source: packages/core/src/tour/tour.ts:14