This is the documentation of version 0.63.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;
        fill?: AreaAnalyticsRegionFillConfig;
        fillStyle?: Extract<GeometryFillStyle, "filled" | "inverted">;
        line?: AreaAnalyticsRegionLineConfig;
    }
    Index
    color?: string

    CSS colour used for both the fill and line 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

    The region's fill.

    fillStyle?: Extract<GeometryFillStyle, "filled" | "inverted">

    'filled' fills the region itself; 'inverted' fills everything outside it instead, tinting the world around the analytics region, as the GeometriesModule fill style of the same name does.

    'filled'
    

    The region's boundary line.