diff options
Diffstat (limited to 'include/mbgl/style/expression/value.hpp')
-rw-r--r-- | include/mbgl/style/expression/value.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/style/expression/value.hpp b/include/mbgl/style/expression/value.hpp index 91239d083f..5cb0535184 100644 --- a/include/mbgl/style/expression/value.hpp +++ b/include/mbgl/style/expression/value.hpp @@ -114,6 +114,13 @@ struct ValueConverter<std::vector<T>> { }; template <> +struct ValueConverter<RadialOffsetType> { + static type::Type expressionType() { return type::Array(type::Number); } + static Value toExpressionValue(const mbgl::style::RadialOffsetType& value); + static optional<RadialOffsetType> fromExpressionValue(const Value& v); +}; + +template <> struct ValueConverter<Position> { static type::Type expressionType() { return type::Array(type::Number, 3); } static Value toExpressionValue(const mbgl::style::Position& value); |