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

    Type Alias AreaAnalyticsRegionPolygonConfig

    Display configuration for the actual region boundary geometry.

    When area analytics data is shown, the original region polygon (the area the query was run for) is also rendered. Use this config to control its appearance.

    type AreaAnalyticsRegionPolygonConfig = {
        color?: string;
        fillOpacity?: number;
        inverted?: boolean;
        outlineOpacity?: number;
        outlineWidth?: number;
    }
    Index
    color?: string

    CSS colour used for both the fill and outline of the region boundary.

    When omitted, the colour follows TomTomMap.styleLightDarkTheme, which says how a custom style is classified.

    Black (#000000) on light styles, white (#FFFFFF) on dark styles

    fillOpacity?: number

    Opacity of the region fill.

    0
    
    inverted?: boolean

    When true, renders the region as an overlay covering everything outside the polygon boundary, effectively tinting the area outside the analytics region.

    Uses a world-minus-polygon donut geometry (same technique as the GeometriesModule 'inverted' fill style).

    false
    
    outlineOpacity?: number

    Opacity of the region outline.

    0.5
    
    outlineWidth?: number

    Width of the region outline in pixels.

    2