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

    Function resolveColorStops

    • Returns a metric's cell colour stops. These are its colorStops if they hold a stop, otherwise its palette (trafficLight when unset) spread evenly from 0 to 100 % of the metric's range, as AreaAnalyticsMetricConfig.palette describes.

      Parameters

      • metric: "speed" | "freeFlowSpeed" | "congestionLevel" | "travelTime" | "networkLength"
      • OptionalmetricConfig: Pick<AreaAnalyticsMetricConfig, "palette" | "colorStops">

      Returns AreaAnalyticsColorStopsConfig