This is the documentation of version 1.0.0-rc.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Variable DEFAULT_TEXT_SIZEConst

    DEFAULT_TEXT_SIZE: ExpressionSpecification = ...

    The default text size expression of the TomTom map style.

    The text scales linearly from 14px at zoom 10 to 16px at zoom 18. Use it to size text consistently 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']
    }
    };