Confronts the fields a layer's readers declare with a sample of its features, and warns — once
per layer and field — about each one no sampled feature carries.
Never throws: a diagnostic that broke the load would be worse than the silence it replaces.
Parameters
layerId: string
The layer's identifier.
def: unknown
The layer's definition.
style: unknown
The style document the layer wears, or null.
features: readonlyunknown[]
The layer's features, as converted. Empty: nothing is judged.
Returns void
Example
// In the loader, once the features are converted and the style resolved: reconcileLayerFields(layerId, def, preloadedStyleData, features);
Confronts the fields a layer's readers declare with a sample of its features, and warns — once per layer and field — about each one no sampled feature carries.
Never throws: a diagnostic that broke the load would be worse than the silence it replaces.