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

    Type Alias AreaAnalyticsScaleMode

    AreaAnalyticsScaleMode: "predefinedRange" | "currentRange" | "raw"

    What a metric value is scaled against, for the colour stops and the cell height alike.

    • 'predefinedRange' - The SDK's predefined range for the metric (congestion 0–100, speed 0–120 km/h, travelTime 0–20 minutes per 10 km), consistent across datasets. Colour stop values are 0–100 % of that range.
    • 'currentRange' - The range of the data in the loaded tiles, for maximum contrast. Colour stop values are 0–100 % of that range, where 0 % is the loaded minimum.
    • 'raw' - The metric value as it is. Colour stop values are metric values.