This is the documentation of version 1.0.0-rc.2. 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. Route waypoints use 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 and offsetY apply to it.

    The colours of the SDK's pin. If you leave out fillColor, the pin takes the module's colour.