This is the documentation of version 1.0.0-rc.0. 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 feature's properties.id, otherwise its top-level id. This is the id the module's getShown() and event handlers return. You can't combine it with index.

    • { index: number }
      • index: number

        The feature's zero-based position in the collection that the module's getShown() returns for it. If a module draws its features in several sources, each source counts its own. You can't combine it with id.