map.apps Bundle APIs 4.20.2
    Preparing search index...

    Interface History

    Interface for the history service (reference "mapnavigation.History").

    interface History {
        canRedo: boolean;
        canUndo: boolean;
        emit<Name extends "update">(
            eventName: Name,
            ...value: Params<{ update: void }[Name]>,
        ): void;
        redo(): void;
        undo(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Methods

    Properties

    canRedo: boolean

    True if redo() can be called at least once

    canUndo: boolean

    True if undo() can be called at least once.

    Methods

    • Emits an event. All associated event listeners registered for the given event name will be invoked asynchronously.

      Type Parameters

      • Name extends "update"

      Parameters

      • eventName: Name

        The name of the event.

      • ...value: Params<{ update: void }[Name]>

        The event value. Passed to all event listeners. Note: no value can be passed if the event type is void.

      Returns void

    • Advances to the next state, or does nothing if there is no such state.

      Returns void

    • Moves back to the last state, or does nothing if there is no such state.

      Returns void