diff options
author | Lucas Wojciechowski <lucas@mapbox.com> | 2018-03-02 16:07:07 -0800 |
---|---|---|
committer | Lucas Wojciechowski <lucas@mapbox.com> | 2018-03-07 11:46:17 -0800 |
commit | a50c9f8ad508b506f299cb6d6cde62a5aa6960ac (patch) | |
tree | 3d5a576ff3cf4c2a351d8ed8790952a310e175c4 | |
parent | c3eafed00c32bfcbd64475175ebc0c97df0dba9f (diff) | |
download | qtlocation-mapboxgl-a50c9f8ad508b506f299cb6d6cde62a5aa6960ac.tar.gz |
Implement `NSPredicate *operator()(mbgl::style::ExpressionFilter filter)`
-rw-r--r-- | platform/darwin/src/NSPredicate+MGLAdditions.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/darwin/src/NSPredicate+MGLAdditions.mm b/platform/darwin/src/NSPredicate+MGLAdditions.mm index 1a643d41d0..63c8307803 100644 --- a/platform/darwin/src/NSPredicate+MGLAdditions.mm +++ b/platform/darwin/src/NSPredicate+MGLAdditions.mm @@ -1,6 +1,7 @@ #import "NSPredicate+MGLAdditions.h" #import "MGLValueEvaluator.h" +#import "MGLStyleValue_Private.h" class FilterEvaluator { public: @@ -196,7 +197,8 @@ public: } NSPredicate *operator()(mbgl::style::ExpressionFilter filter) { - return nil; + id jsonObject = MGLJSONObjectFromMBGLExpression(*filter.expression); + return [NSPredicate mgl_predicateWithJSONObject:jsonObject]; } }; |