Const
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 availableif (mapFonts.includes('Noto-Bold')) { // Use the font}// Use as fallback listconst textLayer = { type: 'symbol', layout: { 'text-font': [...mapFonts] }}; Copy
import { mapFonts } from '@tomtom-org/maps-sdk/map';// Check if a font is availableif (mapFonts.includes('Noto-Bold')) { // Use the font}// Use as fallback listconst textLayer = { type: 'symbol', layout: { 'text-font': [...mapFonts] }};
Array of all available font faces in the TomTom map style.