Loads and displays the legend for a layer with given styles.
layerId / styleId are typed string | undefined (wider than the
underlying facade) so callers forwarding optional ids compile without any
value coercion at this boundary; the facade no-ops on an unknown id.
Loads and displays the legend for a layer with given styles.
layerId/styleIdare typedstring | undefined(wider than the underlying facade) so callers forwarding optional ids compile without any value coercion at this boundary; the facade no-ops on an unknown id.