Returns the value set for a knob, otherwise the module's own value where it knows it (StylingFoundationsModule reads the loaded style), otherwise the catalogue's default.
StylingFoundationsModule
A map module, or a plugin with knobs, such as MapEffects.
MapEffects
Its knob catalogue.
The knob's id.
The value, or undefined for a knob with no default or a style value that is a data-driven expression.
undefined
Error for an id the catalogue lacks.
Error
for (const knob of stylingFoundationsKnobCatalogue) console.log(knob.id, getKnob(styling, stylingFoundationsKnobCatalogue, knob.id)); Copy
for (const knob of stylingFoundationsKnobCatalogue) console.log(knob.id, getKnob(styling, stylingFoundationsKnobCatalogue, knob.id));
Returns the value set for a knob, otherwise the module's own value where it knows it (
StylingFoundationsModulereads the loaded style), otherwise the catalogue's default.