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 RouteHighlightConfig

    The highlight of a hovered or clicked route, selected or not, which widens its outline in the outline colour.

    The routes draw their event states once a handler covers them, or RoutingModule.setEventState puts one. A layers.mainLines outline line-width is drawn as given instead.

    type RouteHighlightConfig = {
        outline?: { widthFactor?: number };
    }
    Index
    outline?: { widthFactor?: number }

    The hovered or clicked route's outline.

    Type Declaration

    • OptionalwidthFactor?: number

      Multiplier on the outline width, where 1 draws it as on any other route.

      Clamped to 1 to 1.25, its range in routingKnobCatalogue.

      1.2