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

    Variable stylingKnobKindsConst

    stylingKnobKinds: readonly ["factor", "number", "toggle", "color", "enum"] = ...

    What kind of value a styling knob takes — a subset of the shared KnobKind vocabulary.

    • factor: a multiplier over what the style already does (1 = unchanged), e.g. label size.
    • number: an absolute number with a range, e.g. a minimum zoom.
    • toggle: true/false, e.g. whether exit numbers are shown.
    • color: a CSS colour string (#rrggbb, hsl(…), rgb(…), a named colour).
    • enum: one of the knob's options, e.g. the projection.