This is the documentation of version 1.0.0-rc.4. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias AttributionOptions

    What the map's attribution ("copyright") shows besides the credits of its data sources.

    const map = new TomTomMap({
    attribution: { credits: ['Weather data by Open-Meteo.com'] },
    mapLibre: { container: 'map' },
    });
    type AttributionOptions = {
        credits?: string[];
    }
    Index
    credits?: string[]

    Your own credits, shown next to TomTom's and kept across style switches.

    Each credit is text or HTML, such as a link. A credit that another credit already contains shows once, so one that repeats the style's own wording, such as © OpenStreetMap, doesn't show twice.

    credits: ['Weather data by <a href="https://open-meteo.com/">Open-Meteo.com</a>']