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

    Function buildReachableRangeFeatures

    • Attaches labels and applies fill-style-specific geometry to reachable range polygon features.

      Features must be ordered largest budget first (e.g. 30 min, 20 min, 10 min). For the inverted fill style, polygons are converted to donuts and one extra innermost feature is appended.

      Parameters

      • features: PolygonFeature[]

        Polygon features from calculateReachableRange, ordered largest budget first.

      • labels: string[]

        Label per feature in matching order (e.g. ['30 min', '20 min', '10 min']).

      • fillStyle: GeometryFillStyle = 'filled'

        Fill style. Defaults to 'filled'.

      Returns PolygonFeature[]

      const features = [range30min, range20min, range10min];
      const labels = ['30 min', '20 min', '10 min'];

      module.show({
      type: 'FeatureCollection',
      features: buildReachableRangeFeatures(features, labels, 'inverted'),
      });