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

    Function prepareReachableRangesForDisplay

    • Prepares the output of calculateReachableRanges for display with GeometriesModule.

      Derives titles from each feature's budget property by default, applies fill-style-specific geometry, and preserves the bounding box. Pass the returned value directly to module.show().

      Note: when using reachableRangeGeometryConfig this is called automatically — you only need this function for explicit control over titles or fill style.

      Features must be ordered largest budget first (e.g. 30 min, 20 min, 10 min).

      Parameters

      Returns PolygonFeatures

      // explicit control:
      module.show(prepareReachableRangesForDisplay(result, { fillStyle: 'inverted' }));
      module.show(prepareReachableRangesForDisplay(result, { title: (feature) => myTitle(feature) }));