-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core] Introduce dedicated filter types for $type and $id special cases #7971
Conversation
@jfirebaugh, thanks for your PR! By analyzing this pull request, we identified @yhahn and @springmeyer to be potential reviewers. |
iOS and macOS tests are failing because
For now, let’s have the conversion match the existing documentation to avoid backwards compatibility concerns. For example: [NSPredicate predicateWithFormatString:@"%@ = 'LineString'", @"$type"]
[NSPredicate predicateWithFormatString:@"%@ IN { 'LineString', 'Polygon' }", @"$type"] If we’re considering cherry-picking this change into iOS SDK v3.4.2, then I’d recommend aliasing 1, 2, 3 to I’ve also identified #7298 as an alternative syntax that we should also support in a future release, but that doesn’t have to happen within the scope of this bug fix (and it also doesn’t have to affect the getter as long as we’re worried about backwards compatibility). |
Feel free to push SDK changes to this PR. @ivovandongen, can you comment on whether the Android SDK has a similar issue to #7552 and how this change would affect it? |
The style validator allows the |
@jfirebaugh The |
@ivovandongen, so if you set |
The validator allows them but they don't work as expected: mapbox/mapbox-gl-js#4235. |
82de8b0
to
b7fa2c0
Compare
b7fa2c0cf54f25249c1d24eb0df59c3a265536ec takes care of the changes needed for iOS and macOS. |
b7fa2c0
to
273cfed
Compare
Updated with |
8efe3b97102d753ca4c6015c4071c99ab88193b7 also takes care of |
|
The iOS and macOS changes look good to me. |
Thanks! I think all that’s left is:
|
Also support $id ≟ nil.
8efe3b9
to
c899b5f
Compare
@1ec5 Yes (#7971 (comment))
Yes, we use the conversion templates for filter conversion (and the rest of the style conversions) which will produce the Thanks for the heads up. |
Refs #7552