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

    Function resetKnob

    • Unsets one knob, so the module is back at its own value for it, as getKnob reads it. To unset every knob, use the module's resetConfig, which resets the rest of its configuration too.

      Type Parameters

      • CONFIG
      • ID extends string
      • KNOB extends string

      Parameters

      • module: KnobTarget<CONFIG>

        A map module, or a plugin with knobs, such as MapEffects.

      • catalogue: readonly KnobEntry<ID>[]

        Its knob catalogue.

      • id: KNOB

        The knob's id.

      Returns void

      Error for an id the catalogue lacks.

      resetKnob(styling, stylingFoundationsKnobCatalogue, 'labels.sizeFactor');