diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-07-15 16:07:42 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-07-18 12:37:36 -0700 |
commit | da35ef9f49139f4dfc7eb5ea2a04f800e895a65f (patch) | |
tree | b054fff3e07d7a6480059b9ae02910b3580f311c /include/mbgl/style/filter.hpp | |
parent | b03471bc8d2658464aacf02e043ef289e9d6e947 (diff) | |
download | qtlocation-mapboxgl-da35ef9f49139f4dfc7eb5ea2a04f800e895a65f.tar.gz |
[core] Add support for $id key to filters
https://github.com/mapbox/mapbox-gl-style-spec/issues/391
Diffstat (limited to 'include/mbgl/style/filter.hpp')
-rw-r--r-- | include/mbgl/style/filter.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <class PropertyAccessor> - bool operator()(FeatureType type, PropertyAccessor accessor) const; + bool operator()(FeatureType type, optional<FeatureIdentifier> id, PropertyAccessor accessor) const; }; } // namespace style |