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

    Type Alias TrafficAreaAnalyticsLayersConfig

    MapLibre overrides for the layers TrafficAreaAnalyticsModule draws, for what its configuration doesn't cover. Each display mode draws its own: heatmap the heatmap, hexgrid-2d the hexagon fill and outline, hexgrid-3d the hexagon extrusion and its highlight, and the same for the square grid; the region boundary is drawn in every mode.

    Each entry is a partial layer spec merged onto the module's own: top-level fields replace, layout and paint merge per property, and what is set here takes precedence over the module's own settings, the active metric's colours and heights included. A cell layer's filter applies together with the active metric's filters. Where the layers sit is beforeLayerConfig's, so a beforeID here is ignored.

    layers: {
    hexgridFill: { paint: { 'fill-opacity': 0.85 } },
    hexgridExtrusion: { paint: { 'fill-extrusion-vertical-gradient': false } },
    regionLine: { paint: { 'line-dasharray': [2, 2] } },
    }
    type TrafficAreaAnalyticsLayersConfig = {
        heatmap?: Partial<ToBeAddedLayerSpecTemplate<HeatmapLayerSpecification>>;
        hexgridExtrusion?: Partial<
            ToBeAddedLayerSpecTemplate<FillExtrusionLayerSpecification>,
        >;
        hexgridExtrusionHighlight?: Partial<
            ToBeAddedLayerSpecTemplate<FillExtrusionLayerSpecification>,
        >;
        hexgridFill?: Partial<ToBeAddedLayerSpecTemplate<FillLayerSpecification>>;
        hexgridOutline?: Partial<
            ToBeAddedLayerSpecTemplate<LineLayerSpecification>,
        >;
        regionFill?: Partial<ToBeAddedLayerSpecTemplate<FillLayerSpecification>>;
        regionLine?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>;
        squareExtrusion?: Partial<
            ToBeAddedLayerSpecTemplate<FillExtrusionLayerSpecification>,
        >;
        squareExtrusionHighlight?: Partial<
            ToBeAddedLayerSpecTemplate<FillExtrusionLayerSpecification>,
        >;
        squareFill?: Partial<ToBeAddedLayerSpecTemplate<FillLayerSpecification>>;
        squareOutline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>;
    }
    Index
    heatmap?: Partial<ToBeAddedLayerSpecTemplate<HeatmapLayerSpecification>>

    The heatmap.

    hexgridExtrusion?: Partial<
        ToBeAddedLayerSpecTemplate<FillExtrusionLayerSpecification>,
    >

    The extruded hexagons.

    hexgridExtrusionHighlight?: Partial<
        ToBeAddedLayerSpecTemplate<FillExtrusionLayerSpecification>,
    >

    The overlay of a hovered or clicked extruded hexagon, drawn over its hexgridExtrusion.

    hexgridFill?: Partial<ToBeAddedLayerSpecTemplate<FillLayerSpecification>>

    The flat hexagons.

    hexgridOutline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>

    The outline of a hovered or clicked flat hexagon.

    regionFill?: Partial<ToBeAddedLayerSpecTemplate<FillLayerSpecification>>

    The region's fill.

    regionLine?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>

    The region's boundary.

    squareExtrusion?: Partial<
        ToBeAddedLayerSpecTemplate<FillExtrusionLayerSpecification>,
    >

    The extruded squares.

    squareExtrusionHighlight?: Partial<
        ToBeAddedLayerSpecTemplate<FillExtrusionLayerSpecification>,
    >

    The overlay of a hovered or clicked extruded square, drawn over its squareExtrusion.

    squareFill?: Partial<ToBeAddedLayerSpecTemplate<FillLayerSpecification>>

    The flat squares.

    squareOutline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>

    The outline of a hovered or clicked flat square.