summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2019-09-03 16:11:27 +0300
committerJuha Alanen <19551460+jmalanen@users.noreply.github.com>2019-09-18 14:29:15 +0300
commite51fafd4ebab154472e8d00a8b16a374728f0863 (patch)
treee5bd25c4cc17e4f282eadffb2d1ddc5792132129
parent8795bd6d55c35733cb2614b558259a03aab5af97 (diff)
downloadqtlocation-mapboxgl-e51fafd4ebab154472e8d00a8b16a374728f0863.tar.gz
[core] Add new types for feature states
-rw-r--r--include/mbgl/util/feature.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/util/feature.hpp b/include/mbgl/util/feature.hpp
index 9e2286018c..56db250de0 100644
--- a/include/mbgl/util/feature.hpp
+++ b/include/mbgl/util/feature.hpp
@@ -11,6 +11,9 @@ using NullValue = mapbox::feature::null_value_t;
using PropertyMap = mapbox::feature::property_map;
using FeatureIdentifier = mapbox::feature::identifier;
using Feature = mapbox::feature::feature<double>;
+using FeatureState = PropertyMap;
+using FeatureStates = std::unordered_map<std::string, FeatureState>; // <featureID, FeatureState>
+using LayerFeatureStates = std::unordered_map<std::string, FeatureStates>; // <sourceLayer, FeatureStates>
template <class T>
optional<T> numericValue(const Value& value) {