summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-08-15 17:18:42 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-08-15 18:25:10 +0300
commit148d65bcede0ee167f8bc1bd162de5de3c397b4e (patch)
tree4904289bc5bc3963c0705c3072a872a42a8b49ff /include
parent2f9a544f9bee077bee004ebb67b2a81f7bafac07 (diff)
downloadqtlocation-mapboxgl-148d65bcede0ee167f8bc1bd162de5de3c397b4e.tar.gz
[core][node] Serialize formatted expression's text-color option
This enables proper round-tripping for serialized format expression.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/color.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/util/color.hpp b/include/mbgl/util/color.hpp
index 01a4c8f292..1ff44ce085 100644
--- a/include/mbgl/util/color.hpp
+++ b/include/mbgl/util/color.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <mbgl/util/optional.hpp>
+#include <mbgl/util/feature.hpp>
#include <cassert>
#include <string>
@@ -39,6 +40,7 @@ public:
static optional<Color> parse(const std::string&);
std::string stringify() const;
std::array<double, 4> toArray() const;
+ mbgl::Value toObject() const;
};
inline bool operator==(const Color& colorA, const Color& colorB) {