TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ReachableRangesModuleConfig

    ReachableRangesModuleConfig: MapModuleCommonConfig & {
        beforeLayerConfig?: GeometryBeforeLayerConfig;
        fill?: ReachableRangeFillConfig;
        highlight?: GeometryHighlightConfig;
        layers?: GeometryLayersConfig;
        line?: ReachableRangeLineConfig;
        lineLabel?: ReachableRangeLineLabelConfig;
        visible?: boolean;
    }

    Configuration of the ReachableRangesModule.

    Type Declaration

    • OptionalbeforeLayerConfig?: GeometryBeforeLayerConfig

      Where the bands sit in the map's layer stack: a single target, or { all, fill, line } to place the fill and the borders apart.

      'lowestLabel'
      
    • Optionalfill?: ReachableRangeFillConfig

      How the bands are filled, and their colours.

    • Optionalhighlight?: GeometryHighlightConfig

      How a hovered or clicked band is drawn.

    • Optionallayers?: GeometryLayersConfig

      MapLibre overrides for the band, border and label layers.

    • Optionalline?: ReachableRangeLineConfig

      How each range's border is drawn.

    • OptionallineLabel?: ReachableRangeLineLabelConfig

      The text and look of the labels along each range's border.

    • Optionalvisible?: boolean

      Whether the module draws its bands, borders and their labels.

      show() and clear() never change it. A hidden module keeps its ranges until ReachableRangesModule.setVisible shows it again.

      true
      

    The bands take their colours from the map unless fill.palette sets them, as ReachableRangeFillConfig.palette explains.

    // The area outside the 30-minute range dimmed, in your own colours
    const config: ReachableRangesModuleConfig = {
    fill: { style: 'inverted', palette: ['#e63312', '#f5a000', '#1d3f8a'] },
    };

    ReachableRangesModuleSerializableConfig for the part that survives JSON.