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

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

    • Optionalvisible?: boolean

      Controls the visibility of the traffic flow layers.

      false
      
    • OptionalwidthFactor?: number

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

      1
      

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