TomTom Maps for JavaScript
    Preparing search index...

    Variable mapFontsConst

    mapFonts: readonly [
        "Noto-Regular",
        "NotoSans-MediumItalic",
        "Noto-Bold",
        "Noto-Medium",
    ] = ...

    Array of all available font faces in the TomTom map style.

    Contains all font variants available in the map style. Useful for font selection or validation when creating custom layers.

    import { mapFonts } from '@tomtom-org/maps-sdk/map';

    // Check if a font is available
    if (mapFonts.includes('Noto-Bold')) {
    // Use the font
    }

    // Use as fallback list
    const textLayer = {
    type: 'symbol',
    layout: {
    'text-font': [...mapFonts]
    }
    };