The colour a style colour knob is at on the map: the one its module was given, one the loaded style derives from a set map colour, or the loaded style's own — whether or not that module exists.
The colour's map-wide id, from styleColorKnobIds.
The colour, or undefined where the style draws it with an expression no single colour stands for, or has no layer for it.
undefined
const slow = getStyleColor(map, 'traffic.flow.colors.slow');const water = getStyleColor(map, 'colors.water'); Copy
const slow = getStyleColor(map, 'traffic.flow.colors.slow');const water = getStyleColor(map, 'colors.water');
The colour a style colour knob is at on the map: the one its module was given, one the loaded style derives from a set map colour, or the loaded style's own — whether or not that module exists.