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

    Type Alias RouteHighlightConfig

    How a hovered or clicked route is drawn: its outline widens, in the outline colour, whether the route is selected or not.

    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; 1 draws it as on any other route.

      Clamped to 1 to 1.25, its range in routingKnobCatalogue.

      1.2