This is the documentation of version 1.0.0-rc.3. 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?: never }
        | { id?: never; index: number }

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

    Type Declaration

    • { id: string | number; index?: never }
      • 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.

      • Optionalindex?: never
    • { id?: never; index: number }
      • Optionalid?: never
      • 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.