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 TrafficFlowModuleConfig

    TrafficFlowModuleConfig: MapModuleCommonConfig & {
        colors?: TrafficFlowColors;
        filters?: TrafficFlowFilters;
        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.

    • 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.