summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/value.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-09 17:51:26 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-12 17:14:32 +0300
commit5a752061fe9d84588d4bd70a37d1c3a861eaa206 (patch)
treed53c56dad0d2c6b216dfd1d98f0c2d3acd9b7c49 /include/mbgl/style/expression/value.hpp
parentbc09cdbf76ffa50ccdd8dc8df7997fdd3a0eb0d6 (diff)
downloadqtlocation-mapboxgl-5a752061fe9d84588d4bd70a37d1c3a861eaa206.tar.gz
[core] Enable two-component text radial offsetupstream/mikhail_two_component_text_radial_offset
Diffstat (limited to 'include/mbgl/style/expression/value.hpp')
-rw-r--r--include/mbgl/style/expression/value.hpp7
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);