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 MapThemeImageSource

    MapThemeImageSource:
        | string
        | Blob
        | HTMLImageElement
        | ImageBitmap
        | ImagePixels

    What deriveMapColorsFromImage accepts: an image URL (must be CORS-readable), a Blob/File, a loaded HTMLImageElement, an ImageBitmap, or raw ImagePixels.