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

    Type Alias StylingKnob

    One entry of stylingKnobCatalogue: what a UI or a coding agent needs to offer the knob and validate a value for it, with no map loaded. The value in force is StylingModule.get.

    type StylingKnob = {
        appliesTo: StylingKnobAppliesTo;
        description: string;
        id: StylingKnobId;
        kind: StylingKnobKind;
        options?: readonly string[];
        range?: StylingKnobRange;
    }
    Index

    Which styles the knob works on; see stylingKnobAppliesTo.

    description: string

    One line on what turning the knob does.

    The knob's id, as accepted by StylingModule.set.

    options?: readonly string[]

    The valid values, for enum knobs.

    The range of valid values, for factor and number knobs.