The feature the title function receives.
Optionaltitle?: ((feature: F) => string) | DataDrivenPropertyValueSpecification<string>Text content for the label.
The SDK calls a function once per feature when it shows it, and draws its result as given. A MapLibre expression, which the layer evaluates per feature over the properties the feature is drawn with, replaces the module's whole label text.
A LabelConfig that also sets what the label says, for the labels a module writes beside the features it shows.