@versatiles/style
    Preparing search index...

    Type Alias LabelStyle

    How a node of the text tree sets its labels. Every property is optional: a topic takes each one from the nearest node above it that sets it, else from the style's default for that topic.

    type LabelStyle = {
        font?: FontName;
        haloBlur?: number;
        haloWidth?: number;
        letterSpacing?: number;
        lineHeight?: number;
        maxWidth?: number;
        scale?: number;
        spacing?: number;
        transform?: TextTransform;
    }
    Index
    font?: FontName

    A glyph name, e.g. 'noto_sans_regular'.

    haloBlur?: number

    Halo blur in px. Default 1; 0.5 for POIs, 0 for addresses.

    haloWidth?: number

    Halo width in px. Default 2; 1 for motorway exits, 0.1 for motorway refs, 0.5 for POIs, 0 for addresses.

    letterSpacing?: number

    Letter spacing in ems. Default 0.

    lineHeight?: number

    Line height in ems. Default 1.2.

    maxWidth?: number

    Wrap width in ems. Default 10.

    scale?: number

    Multiplies the layer's own text size. Default 1.

    spacing?: number

    How far apart labels keep. Along a line it multiplies the repeat distance; at a point each step above 1 adds 14 px of collision padding. Default 1.

    transform?: TextTransform

    Capitalization. Default 'none', 'uppercase' for boundaries, hamlets and districts.