GeoLeaf Core API - v3.0.0
    Preparing search index...

    The free-form labelConfig bag accepted by enableLabels(). Mirrors the profile-authored label options; everything is optional and permissive.

    interface LabelUserConfig {
        enabled?: boolean;
        labelId?: string;
        styleFile?: string;
        font?: LabelFontConfig;
        color?: string;
        opacity?: number;
        buffer?: LabelBufferConfig;
        background?: { enabled?: boolean; [key: string]: unknown };
        offset?: { distancePx?: number; [key: string]: unknown };
        minZoom?: number;
        maxZoom?: number;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index

    Properties

    enabled?: boolean
    labelId?: string
    styleFile?: string
    font?: LabelFontConfig
    color?: string
    opacity?: number
    buffer?: LabelBufferConfig
    background?: { enabled?: boolean; [key: string]: unknown }
    offset?: { distancePx?: number; [key: string]: unknown }
    minZoom?: number
    maxZoom?: number