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

    Function sectionSourceKey

    • The key the given section type's source, events scope and getShown() entry are filed under.

      Type Parameters

      Parameters

      • type: T

      Returns SectionSourceKey<T>

      routing.events[sectionSourceKey('lowEmissionZone')].on('click', (section) => { … });
      const tunnels = routing.getShown()[sectionSourceKey('tunnel')];