[core] Add new types for feature states

This commit is contained in:
Juha Alanen
2019-09-03 16:11:27 +03:00
committed by Juha Alanen
parent 8795bd6d55
commit e51fafd4eb

View File

@@ -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) {