TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ByIdOrIndex

    ByIdOrIndex: { id: string } | { index: number }

    Parameters to identify a feature by its ID or index in a given features array.

    Type Declaration

    • { id: string }
      • id: string

        The unique identifier of the feature.

        This ID corresponds to the id property of the feature being targeted. Cannot be used together with index.

    • { index: number }
      • index: number

        The index of the feature in the feature array.

        Zero-based index referring to the position in the features array that was passed to the module's show method. Cannot be used together with id.