Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Implement `NSPredicate *operator()(mbgl::style::ExpressionFilter filt…
Browse files Browse the repository at this point in the history
…er)`
  • Loading branch information
Lucas Wojciechowski committed Mar 7, 2018
1 parent c3eafed commit a50c9f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/darwin/src/NSPredicate+MGLAdditions.mm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#import "NSPredicate+MGLAdditions.h"

#import "MGLValueEvaluator.h"
#import "MGLStyleValue_Private.h"

class FilterEvaluator {
public:
Expand Down Expand Up @@ -196,7 +197,8 @@
}

NSPredicate *operator()(mbgl::style::ExpressionFilter filter) {
return nil;
id jsonObject = MGLJSONObjectFromMBGLExpression(*filter.expression);
return [NSPredicate mgl_predicateWithJSONObject:jsonObject];
}
};

Expand Down

0 comments on commit a50c9f8

Please sign in to comment.