Skip to content

resolveLabelStyle

resolveLabelStyle(className, style): LabelStyle | undefined

Defined in: labels/label-layer.ts:98

The engine-label styling policy (#224): merge a caller’s inline LabelStyle over DEFAULT_LABEL_STYLE — a partial override keeps the rest — but when a className is given, return only the explicit style (possibly undefined): the class’s CSS keeps full control, since an inline default would beat it. Shared so other engines lift the exact same policy (#223); pass the result as LabelLayer’s style.

string | undefined

LabelStyle | undefined

LabelStyle | undefined