You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Document that case and diacritic folding is unsupported in predicates #6781
Diacritics (éçü etc.) aren't folded (compared against ecu) when evaluating filters/predicates for runtime styling.
This can particularly bite you when you round-trip feature querying, pulling up a feature with attribute name = Québec but then try to style a layer qualifying to that render feature, yet only Quebec exists there.
This needs to happen in core first.
Meanwhile the docs need updated e.g. here to indicate this behavior.
Case and diacritic folding should only ever be opt-in, not opt-out, so the current behavior is correct inasmuch as no diacritic option has been specified.
In order to support case and diacritic folding, the style specification needs to be extended to support additional options on filter operators: mapbox/mapbox-gl-style-spec#548.
Meanwhile the docs need updated
We can state that the operator modifiers c, d, and cd are unsupported for comparison and aggregate operators.
This can particularly bite you when you round-trip feature querying, pulling up a feature with attribute name = Québec but then try to style a layer qualifying to that render feature, yet only Quebec exists there.
I assume this happened because you filtered on name_en in the predicate. If you had filtered on name instead, any feature with its name attribute set to Québec would’ve been included in the layer.
changed the title [-]diacritics aren't folded for layer filters[/-][+]Document that case and diacritic folding is unsupported in predicates[/+]on Nov 30, 2016
Activity
1ec5 commentedon Oct 21, 2016
Case and diacritic folding should only ever be opt-in, not opt-out, so the current behavior is correct inasmuch as no diacritic option has been specified.
In order to support case and diacritic folding, the style specification needs to be extended to support additional options on filter operators: mapbox/mapbox-gl-style-spec#548.
We can state that the operator modifiers
c,d, andcdare unsupported for comparison and aggregate operators.1ec5 commentedon Nov 30, 2016
I assume this happened because you filtered on
name_enin the predicate. If you had filtered onnameinstead, any feature with itsnameattribute set toQuébecwould’ve been included in the layer.[-]diacritics aren't folded for layer filters[/-][+]Document that case and diacritic folding is unsupported in predicates[/+]boundsj commentedon Dec 1, 2016
Fixed by #7232