summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/layers/symbol_layer.hpp6
-rw-r--r--include/mbgl/style/types.hpp7
2 files changed, 13 insertions, 0 deletions
diff --git a/include/mbgl/style/layers/symbol_layer.hpp b/include/mbgl/style/layers/symbol_layer.hpp
index 676d90d5b9..7d98a5ef6b 100644
--- a/include/mbgl/style/layers/symbol_layer.hpp
+++ b/include/mbgl/style/layers/symbol_layer.hpp
@@ -53,6 +53,12 @@ public:
PropertyValue<float> getIconSize() const;
void setIconSize(PropertyValue<float>);
+ PropertyValue<IconTextFitType> getIconTextFit() const;
+ void setIconTextFit(PropertyValue<IconTextFitType>);
+
+ PropertyValue<std::array<float, 4>> getIconTextFitPadding() const;
+ void setIconTextFitPadding(PropertyValue<std::array<float, 4>>);
+
PropertyValue<std::string> getIconImage() const;
void setIconImage(PropertyValue<std::string>);
diff --git a/include/mbgl/style/types.hpp b/include/mbgl/style/types.hpp
index 46c0cb3c39..28ebda9fb9 100644
--- a/include/mbgl/style/types.hpp
+++ b/include/mbgl/style/types.hpp
@@ -80,5 +80,12 @@ enum class TextTransformType : uint8_t {
Lowercase,
};
+enum class IconTextFitType : uint8_t {
+ None,
+ Both,
+ Width,
+ Height
+};
+
} // namespace style
} // namespace mbgl