• JMap.Map.undoLastNavigationStep

    Step back in the navigation history recorded in the current map session

    Will apply the necessary pan, zoom, bearing and pitch to get back to the last Map view. Maximum number of recorded steps is 64 (older steps get erased)

    Returns JMapNavigationStep | undefined

    The last JMapNavigationStep, or undefined if the stack is not rewindable anymore

    Example

    // navigate to the previous recorded map view
    const lastStep: JMapNavigationStep | undefined = JMap.Map.undoLastNavigationStep()