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.

      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');