summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYoung Hahn <young@mapbox.com>2016-06-10 23:05:15 -0400
committerGitHub <noreply@github.com>2016-06-10 23:05:15 -0400
commitecd4aa14397ed081a521d8412557724e52f277f3 (patch)
treea04bca00190eba8f3f3947689ab6b7ff537e8946 /include
parenta8df0feb5414af2c16bfdae27431d779e4545dbe (diff)
downloadqtlocation-mapboxgl-ecd4aa14397ed081a521d8412557724e52f277f3.tar.gz
text-pitch-alignment (#5288)
* First pass at port of https://github.com/mapbox/mapbox-gl-js/pull/2668 * RotationAlignmentType => AlignmentType * Handle undefined default value for text-pitch-alignment and implement inheritance for this value from text-rotation-alignment * Update dependencies * Move handling fo undefined default value out of camelize functions
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/layers/symbol_layer.hpp11
-rw-r--r--include/mbgl/style/types.hpp3
2 files changed, 9 insertions, 5 deletions
diff --git a/include/mbgl/style/layers/symbol_layer.hpp b/include/mbgl/style/layers/symbol_layer.hpp
index 3806310c95..676d90d5b9 100644
--- a/include/mbgl/style/layers/symbol_layer.hpp
+++ b/include/mbgl/style/layers/symbol_layer.hpp
@@ -47,8 +47,8 @@ public:
PropertyValue<bool> getIconOptional() const;
void setIconOptional(PropertyValue<bool>);
- PropertyValue<RotationAlignmentType> getIconRotationAlignment() const;
- void setIconRotationAlignment(PropertyValue<RotationAlignmentType>);
+ PropertyValue<AlignmentType> getIconRotationAlignment() const;
+ void setIconRotationAlignment(PropertyValue<AlignmentType>);
PropertyValue<float> getIconSize() const;
void setIconSize(PropertyValue<float>);
@@ -68,8 +68,11 @@ public:
PropertyValue<std::array<float, 2>> getIconOffset() const;
void setIconOffset(PropertyValue<std::array<float, 2>>);
- PropertyValue<RotationAlignmentType> getTextRotationAlignment() const;
- void setTextRotationAlignment(PropertyValue<RotationAlignmentType>);
+ PropertyValue<AlignmentType> getTextPitchAlignment() const;
+ void setTextPitchAlignment(PropertyValue<AlignmentType>);
+
+ PropertyValue<AlignmentType> getTextRotationAlignment() const;
+ void setTextRotationAlignment(PropertyValue<AlignmentType>);
PropertyValue<std::string> getTextField() const;
void setTextField(PropertyValue<std::string>);
diff --git a/include/mbgl/style/types.hpp b/include/mbgl/style/types.hpp
index 27b524a800..3be7b5d9c7 100644
--- a/include/mbgl/style/types.hpp
+++ b/include/mbgl/style/types.hpp
@@ -58,9 +58,10 @@ enum class SymbolPlacementType : bool {
Line,
};
-enum class RotationAlignmentType : bool {
+enum class AlignmentType : uint8_t {
Map,
Viewport,
+ Undefined,
};
enum class TextJustifyType : uint8_t {