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.
Activity
1ec5 commentedon Jan 6, 2018
Per #7978 (comment), this task includes adding a
getFilter()accessor toLayer.anandthakker commentedon Feb 6, 2018
Outline of an implementation approach:
a. Add an
ExpressionFiltertype to include/mbgl/style/filter.hpp that holds anmbgl::style::Expressionobject (of typembgl::style::expression::type::Boolean)b. Add a corresponding overload for
mbgl::style::FilterEvaluatorc. In src/mbgl/style/conversion/filter.cpp, add a port of isExpressionFilter and use it to decide in
Converter<Filter>::operator()whether to parse the incoming JSON as anExpressionFilteror one of the legacy filter types.a. Port the specialized
filter-*expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp.b. Update src/mbgl/style/conversion/filter.cpp to always convert incoming JSON values to an
ExpressionFilter(using thefilter-*types as needed for legacy syntax)c. Rewrite/simplify include/mbgl/style/filter.hpp and
mbgl::style::FilterEvaluator, removing all the different*Filtertypes and theFiltervariant and renamingExpressionFiltertoFilter.1ec5 commentedon Feb 7, 2018
Once the core changes in #10720 (comment) are complete, we can remove the
FilterEvaluatorfrom NSExpression+MGLAdditions.mm and round out a few remaining NSPredicate-specific operators for #11013.