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

    Type Alias TrafficFlowModuleConfig

    TrafficFlowModuleConfig: MapModuleCommonConfig & {
        colors?: TrafficFlowColors;
        filters?: TrafficFlowFilters;
        opacityFactor?: number;
        visible?: boolean;
        widthFactor?: number;
    }

    Configuration for traffic flow visualization module.

    Type Declaration

    • Optionalcolors?: TrafficFlowColors

      The colours of the flow lines, per congestion level.

    • Optionalfilters?: TrafficFlowFilters

      Filter configuration for traffic flow data.

      It controls which road segments display traffic flow information based on road category and closure status.

    • OptionalopacityFactor?: number

      Opacity multiplier for the flow lines and their outlines, from 0 to 1, where 1 is the style's own. Lower it to fade traffic under your own data, such as a route.

      1
      
    • Optionalvisible?: boolean

      Whether the traffic flow layers are visible.

      false
      
    • OptionalwidthFactor?: number

      Width multiplier for the flow lines, where 1 is the style's own.

      1
      

    It controls the display of real-time traffic flow data on road segments, including styling and filtering options.