diff options
Diffstat (limited to 'include/mbgl/util/feature_state.hpp')
-rw-r--r-- | include/mbgl/util/feature_state.hpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/mbgl/util/feature_state.hpp b/include/mbgl/util/feature_state.hpp index e97926c6e1..f63f3dcbff 100644 --- a/include/mbgl/util/feature_state.hpp +++ b/include/mbgl/util/feature_state.hpp @@ -15,17 +15,32 @@ struct FeatureStateChange { }; ChangeType type; + std::string sourceLayer; FeatureIdentifier id; std::string key; optional<Value> value; FeatureStateChange(ChangeType type_, - FeatureIdentifier&& id_, - std::string&& key_, + const std::string& sourceLayer_, + const FeatureIdentifier& id_, + const std::string& key_, optional<Value> value_) : type(type_), + sourceLayer(sourceLayer_), id(std::move(id_)), key(std::move(key_)), value(std::move(value_)) {} + + FeatureStateChange(ChangeType type_, + const FeatureIdentifier& id_, + const std::string& key_, + optional<Value> value_) : + type(type_), + id(std::move(id_)), + key(std::move(key_)), + value(std::move(value_)) {} + }; +using FeatureStateChangeSet = std::vector<FeatureStateChange>; + } // namespace mbgl |