From da35ef9f49139f4dfc7eb5ea2a04f800e895a65f Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 15 Jul 2016 16:07:42 -0700 Subject: [core] Add support for $id key to filters https://github.com/mapbox/mapbox-gl-style-spec/issues/391 --- include/mbgl/style/filter.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/mbgl/style/filter.hpp') diff --git a/include/mbgl/style/filter.hpp b/include/mbgl/style/filter.hpp index 6a5afb7b47..dd2b20cd0d 100644 --- a/include/mbgl/style/filter.hpp +++ b/include/mbgl/style/filter.hpp @@ -107,8 +107,10 @@ class Filter : public FilterBase { public: using FilterBase::FilterBase; + bool operator()(const Feature&) const; + template - bool operator()(FeatureType type, PropertyAccessor accessor) const; + bool operator()(FeatureType type, optional id, PropertyAccessor accessor) const; }; } // namespace style -- cgit v1.2.1