TomTom Maps for JavaScript
    Preparing search index...

    Variable DEFAULT_TEXT_SIZEConst

    DEFAULT_TEXT_SIZE: ExpressionSpecification = ...

    Default text size expression used in the TomTom map style.

    This MapLibre expression defines zoom-dependent text sizing that scales from 12px at zoom 10 to 14px at zoom 16. Use this for consistent text sizing across zoom levels.

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

    const textLayer = {
    type: 'symbol',
    layout: {
    'text-size': DEFAULT_TEXT_SIZE,
    'text-field': ['get', 'name']
    }
    };