Georeferencing API
    Preparing search index...

    Bounded back/forward navigation history, used for image and map view history. Recording after stepping back discards the forward entries; consecutive equal entries are recorded once.

    Type Parameters

    • T

      Recorded view state.

    Index
    • Type Parameters

      • T

        Recorded view state.

      Parameters

      • limit: number = 50

        Maximum retained entries; the oldest entry is dropped first.

      • equal: (a: T, b: T) => boolean = ...

        Entry equality used to skip duplicate consecutive entries.

      Returns ViewHistory<T>

    • Move back (-1) or forward (1), returning the new current entry or undefined at an end.

      Parameters

      • direction: -1 | 1

      Returns T | undefined