Const
All font faces available in the TomTom map style.
Use it to select or validate fonts 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] }};
All font faces available in the TomTom map style.