This is the documentation of version 0.50.0. Go to the latest version, 1.0.0.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias SVGIconStyleOptions

    Options to style SDK SVG icons with custom colors and opacity.

    const style: SVGIconStyleOptions = {
    fillColor: '#00FF00',
    outlineColor: '#000000',
    outlineOpacity: 0.5
    };
    type SVGIconStyleOptions = {
        fillColor?: string;
        outlineColor?: string;
        outlineOpacity?: number;
    }
    Index

    Properties

    fillColor?: string

    The fill color to apply to the SVG icon (e.g., '#FF0000' or 'red').

    outlineColor?: string

    The outline (stroke) color to apply to the SVG icon.

    outlineOpacity?: number

    The opacity of the outline, from 0 (transparent) to 1 (opaque).