TomTom Maps for JavaScript
    Preparing search index...

    Type Alias StylingFoundationsModuleConfig

    StylingFoundationsModuleConfig: MapModuleCommonConfig & KnobConfigOf<
        { [ID in StylingFoundationsKnobId]: StylingFoundationsKnobValueOf<ID> },
    > & { labels?: Pick<LabelConfig, "customTypeface"> }

    The styling settings, as StylingFoundationsModule.getConfig returns and StylingFoundationsModule.applyConfig accepts. Each knob id is its path in here, so the view.sky.color knob is config.view.sky.color. It's plain JSON, so persist it, diff it or ship it. labels.customTypeface is the one setting that isn't a knob, since no knob kind takes font files. While set, it wins over the labels.typeface knob.

    const settings: StylingFoundationsModuleConfig = {
    labels: { sizeFactor: 1.2 },
    colors: { water: '#7cc4e8' },
    view: { projection: 'globe' },
    };
    styling.applyConfig(settings);