Skip to main content

MountTour

A first-visit tour a page gives its map: a welcome card, steps that each end when the person does what they ask, and an ending. The map has no tour of its own, because the words and the steps are the page's. In releases after 0.2.0, not in 0.2.0 or any earlier release.

This is an interface exported by @mapcairn/sdk/browser, checked against version 0.2.0.

Signature​

import type { MountTour } from "@mapcairn/sdk/browser";

interface MountTour

Properties​

ending​

readonly ending: MountTourCard;

The card shown after the last step.

steps​

readonly steps: readonly MountTourStep[];

The steps, in order: at least one.

version​

readonly version: number;

The tour's version, a whole number from 1. The answer is saved with it, so a higher number offers the tour again to a person who answered a lower one. Help can start the tour at any time. The welcome card is offered only where the settings are kept, and not for a visit that arrives by a shared link that carries a view, layers or shapes.

welcome​

readonly welcome: MountTourCard & {
readonly announcement: string;
};

The welcome card, offered on a first visit.

See also​