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 has been archived by the owner on Aug 8, 2023. It is now read-only.
MGLStyleLayer should have a predicate property that translates to a filter in mbgl. The developer would create a predicate like so:
[NSPredicatepredicateWithFormat:@"name == 'USA'"]
The returned value would be an instance of NSComparisonPredicate with leftExpression.keyPath being name, predicateOperatorType being NSEqualToPredicateOperatorType, and rightExpression.constantValue being USA. We’d translate that into an mbgl::style::EqualsFilter.
MGLStyleLayer should have a
predicate
property that translates to a filter in mbgl. The developer would create a predicate like so:The returned value would be an instance of NSComparisonPredicate with
leftExpression.keyPath
beingname
,predicateOperatorType
beingNSEqualToPredicateOperatorType
, andrightExpression.constantValue
beingUSA
. We’d translate that into anmbgl::style::EqualsFilter
.Here’s a full correspondence between NSPredicate types and style specification filter forms.
/cc @frederoni @incanus
The text was updated successfully, but these errors were encountered: