From a8ef2af353de195648578bf0d753703cb6f34905 Mon Sep 17 00:00:00 2001 From: Lauren Budorick Date: Wed, 26 Jul 2017 13:18:47 -0700 Subject: [core][android][macos][ios] Implement property functions for line-join, text-justify, text-anchor (#9583) --- include/mbgl/style/conversion/make_property_setters.hpp | 6 +++--- include/mbgl/style/layers/line_layer.hpp | 6 +++--- include/mbgl/style/layers/symbol_layer.hpp | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'include') diff --git a/include/mbgl/style/conversion/make_property_setters.hpp b/include/mbgl/style/conversion/make_property_setters.hpp index f29d5f5b6f..9252297d75 100644 --- a/include/mbgl/style/conversion/make_property_setters.hpp +++ b/include/mbgl/style/conversion/make_property_setters.hpp @@ -26,7 +26,7 @@ auto makeLayoutPropertySetters() { result["line-cap"] = &setProperty, &LineLayer::setLineCap>; - result["line-join"] = &setProperty, &LineLayer::setLineJoin>; + result["line-join"] = &setProperty, &LineLayer::setLineJoin>; result["line-miter-limit"] = &setProperty, &LineLayer::setLineMiterLimit>; result["line-round-limit"] = &setProperty, &LineLayer::setLineRoundLimit>; @@ -54,8 +54,8 @@ auto makeLayoutPropertySetters() { result["text-max-width"] = &setProperty, &SymbolLayer::setTextMaxWidth>; result["text-line-height"] = &setProperty, &SymbolLayer::setTextLineHeight>; result["text-letter-spacing"] = &setProperty, &SymbolLayer::setTextLetterSpacing>; - result["text-justify"] = &setProperty, &SymbolLayer::setTextJustify>; - result["text-anchor"] = &setProperty, &SymbolLayer::setTextAnchor>; + result["text-justify"] = &setProperty, &SymbolLayer::setTextJustify>; + result["text-anchor"] = &setProperty, &SymbolLayer::setTextAnchor>; result["text-max-angle"] = &setProperty, &SymbolLayer::setTextMaxAngle>; result["text-rotate"] = &setProperty, &SymbolLayer::setTextRotate>; result["text-padding"] = &setProperty, &SymbolLayer::setTextPadding>; diff --git a/include/mbgl/style/layers/line_layer.hpp b/include/mbgl/style/layers/line_layer.hpp index 0b49690fd8..4519296323 100644 --- a/include/mbgl/style/layers/line_layer.hpp +++ b/include/mbgl/style/layers/line_layer.hpp @@ -42,9 +42,9 @@ public: PropertyValue getLineCap() const; void setLineCap(PropertyValue); - static PropertyValue getDefaultLineJoin(); - PropertyValue getLineJoin() const; - void setLineJoin(PropertyValue); + static DataDrivenPropertyValue getDefaultLineJoin(); + DataDrivenPropertyValue getLineJoin() const; + void setLineJoin(DataDrivenPropertyValue); static PropertyValue getDefaultLineMiterLimit(); PropertyValue getLineMiterLimit() const; diff --git a/include/mbgl/style/layers/symbol_layer.hpp b/include/mbgl/style/layers/symbol_layer.hpp index f4d0322dc7..6e355c0057 100644 --- a/include/mbgl/style/layers/symbol_layer.hpp +++ b/include/mbgl/style/layers/symbol_layer.hpp @@ -134,13 +134,13 @@ public: PropertyValue getTextLetterSpacing() const; void setTextLetterSpacing(PropertyValue); - static PropertyValue getDefaultTextJustify(); - PropertyValue getTextJustify() const; - void setTextJustify(PropertyValue); + static DataDrivenPropertyValue getDefaultTextJustify(); + DataDrivenPropertyValue getTextJustify() const; + void setTextJustify(DataDrivenPropertyValue); - static PropertyValue getDefaultTextAnchor(); - PropertyValue getTextAnchor() const; - void setTextAnchor(PropertyValue); + static DataDrivenPropertyValue getDefaultTextAnchor(); + DataDrivenPropertyValue getTextAnchor() const; + void setTextAnchor(DataDrivenPropertyValue); static PropertyValue getDefaultTextMaxAngle(); PropertyValue getTextMaxAngle() const; -- cgit v1.2.1