diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-23 15:37:01 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-29 12:09:22 +0200 |
commit | 270c24a9a8c8a02e62132cd4cb7b8aac2c1e6de5 (patch) | |
tree | 8b03393949d87e08680c54d9e29cd34036eb6f39 /include/mbgl/style/types.hpp | |
parent | 6e44e03241ff5b21f24f0f0d944c33ecdbeedead (diff) | |
download | qtlocation-mapboxgl-270c24a9a8c8a02e62132cd4cb7b8aac2c1e6de5.tar.gz |
add symbol* properties/keys
Diffstat (limited to 'include/mbgl/style/types.hpp')
-rw-r--r-- | include/mbgl/style/types.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/mbgl/style/types.hpp b/include/mbgl/style/types.hpp index f8e99418da..70090a7e36 100644 --- a/include/mbgl/style/types.hpp +++ b/include/mbgl/style/types.hpp @@ -61,6 +61,12 @@ enum class TextPathType : uint8_t { Default = Horizontal }; +enum class PlacementType : bool { + Point, + Line, + Default = Point +}; + enum class TextTransformType : uint8_t { None, Uppercase, @@ -80,6 +86,33 @@ enum class RotateAnchorType : uint8_t { Default = Viewport }; +enum class RotationAlignmentType : bool { + Map, + Viewport, + Default = Viewport +}; + +enum class TextJustifyType : uint8_t { + Center, + Left, + Right, + Default = Center +}; + +enum class TextHorizontalAlignType : uint8_t { + Left, + Center, + Right, + Default = Center +}; + +enum class TextVerticalAlignType : uint8_t { + Top, + Center, + Bottom, + Default = Center +}; + enum class SourceType : uint8_t { Vector, Raster, @@ -114,6 +147,12 @@ inline TextPathType parseTextPathType(const std::string &path) { return TextPathType::Default; } +inline PlacementType parsePlacementType(const std::string &path) { + if (path == "point") return PlacementType::Point; + if (path == "line") return PlacementType::Line; + return PlacementType::Default; +} + inline TextTransformType parseTextTransformType(const std::string& transform) { if (transform == "uppercase") return TextTransformType::Uppercase; if (transform == "lowercase") return TextTransformType::Lowercase; |