This is the documentation of version 0.63.0. 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 s/km): consistent across datasets. Colour stop values are 0–100 % of that range.
    • 'currentRange' — the range of the data in the loaded tiles: maximum contrast. Colour stop values are 0–100 % of that range, 0 % being the loaded minimum.
    • 'raw' — the metric value as it is. Colour stop values are metric values.