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 GeometryHighlightConfig

    How a hovered or clicked geometry is drawn: a denser fill and a wider border, in its own colours.

    The factors multiply the fill opacity and border width in force, the configured fill.opacity and line.width included; a line.layer line-width is drawn as given. The geometries draw their event states once a handler covers them, or GeometriesModule.putEventState puts one.

    // A bolder border alone
    const highlight: GeometryHighlightConfig = { fillOpacityFactor: 1, lineWidthFactor: 2.5 };
    type GeometryHighlightConfig = {
        fillOpacityFactor?: number;
        lineWidthFactor?: number;
    }
    Index
    fillOpacityFactor?: number

    Multiplier on the fill opacity, at most opaque; 1 draws the fill as on any other geometry. Clamped to 1 to 4.

    2

    lineWidthFactor?: number

    Multiplier on the border width; 1 draws the border as on any other geometry. Clamped to 1 to 3.

    1.75