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 SerializableCustomImage<I>

    SerializableCustomImage: Omit<CustomImage<I>, "image"> & {
        image?: Exclude<CustomImage["image"], HTMLImageElement>;
    }

    A CustomImage that survives JSON: its image a URL, data URI or SVG text. JSON.stringify turns an HTMLImageElement into {}.

    Type Parameters

    • I extends string = string