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 PinIconConfig

    One of the SDK's pins: recoloured, or replaced by an image of your own.

    Places draw their default pin from one, and route waypoints one per role (start, stop, finish).

    const recoloured: PinIconConfig = { style: { fillColor: '#2FAA4E', outlineColor: '#FFFFFF' } };
    const replaced: PinIconConfig = { image: { image: '/icons/flag.svg', pixelRatio: 2 } };
    type PinIconConfig = {
        image?: Omit<CustomImage, "id">;
        style?: SVGIconStyleOptions;
    }
    Index
    image?: Omit<CustomImage, "id">

    An image drawn in place of the SDK's pin. Neither style nor the image's own offsetX, offsetY and availabilityLevel apply to it.

    Colours of the SDK's pin. A fillColor left out takes the module's colour.