summaryrefslogtreecommitdiff
path: root/include/mbgl/style
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-11-04 10:53:35 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-11-04 12:26:27 -0800
commit051e1c32ae4f553085adfc7b66e005ef70f62349 (patch)
treeca934665c051c4616a796528adb4f4cc4e288d9f /include/mbgl/style
parent0790b574b43322a0ea85e6ec6488b16dc74e11ce (diff)
downloadqtlocation-mapboxgl-051e1c32ae4f553085adfc7b66e005ef70f62349.tar.gz
Support compound text-anchor values
Diffstat (limited to 'include/mbgl/style')
-rw-r--r--include/mbgl/style/types.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/mbgl/style/types.hpp b/include/mbgl/style/types.hpp
index 36cb39181e..2f7ca7683d 100644
--- a/include/mbgl/style/types.hpp
+++ b/include/mbgl/style/types.hpp
@@ -157,7 +157,11 @@ enum class TextAnchorType : uint8_t {
Left,
Right,
Top,
- Bottom
+ Bottom,
+ TopLeft,
+ TopRight,
+ BottomLeft,
+ BottomRight
};
MBGL_DEFINE_ENUM_CLASS(TextAnchorTypeClass, TextAnchorType, {
@@ -166,6 +170,10 @@ MBGL_DEFINE_ENUM_CLASS(TextAnchorTypeClass, TextAnchorType, {
{ TextAnchorType::Right, "right" },
{ TextAnchorType::Top, "top" },
{ TextAnchorType::Bottom, "bottom" },
+ { TextAnchorType::TopLeft, "top-left" },
+ { TextAnchorType::TopRight, "top-right" },
+ { TextAnchorType::BottomLeft, "bottom-left" },
+ { TextAnchorType::BottomRight, "bottom-right" }
});
// -------------------------------------------------------------------------------------------------