A font face available in the TomTom map style.
Use it for type-safe font selection in text layers. It only accepts the fonts available in the map style.
import type { MapFont } from '@tomtom-org/maps-sdk/map';function createTextLayer(font: MapFont) { return { type: 'symbol', layout: { 'text-font': [font], 'text-field': ['get', 'name'] } };}// Type-safe: only accepts valid map fontsconst layer = createTextLayer('Noto-Bold'); Copy
import type { MapFont } from '@tomtom-org/maps-sdk/map';function createTextLayer(font: MapFont) { return { type: 'symbol', layout: { 'text-font': [font], 'text-field': ['get', 'name'] } };}// Type-safe: only accepts valid map fontsconst layer = createTextLayer('Noto-Bold');
A font face available in the TomTom map style.