This is the documentation of version 0.62.2. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ByIdOrIndex

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

    Parameters to identify a shown feature by its ID or by its index.

    Type Declaration

    • { id: string | number }
      • id: string | number

        The id of the feature: its properties.id, else its top-level id — the id the module's getShown() and event handlers hand back. Cannot be used together with index.

    • { index: number }
      • index: number

        The zero-based position of the feature in the collection the module's getShown() returns for it. Where a module draws its features in several sources, each source counts its own. Cannot be used together with id.