diff options
Diffstat (limited to 'platform/darwin/src/MGLBackgroundStyleLayer.mm')
-rw-r--r-- | platform/darwin/src/MGLBackgroundStyleLayer.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLBackgroundStyleLayer.mm b/platform/darwin/src/MGLBackgroundStyleLayer.mm index 5ba581869b..1a991a65e9 100644 --- a/platform/darwin/src/MGLBackgroundStyleLayer.mm +++ b/platform/darwin/src/MGLBackgroundStyleLayer.mm @@ -37,7 +37,7 @@ } - (id <MGLStyleAttributeValue>)backgroundColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getBackgroundColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getBackgroundColor()]; } - (void)setBackgroundPattern:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)backgroundPattern { @@ -46,7 +46,7 @@ } - (id <MGLStyleAttributeValue>)backgroundPattern { - return [MGLStyleAttribute mbgl_stringPropertyValueWith:self.layer->getBackgroundPattern()]; + return [MGLStyleAttribute mbgl_stringWithPropertyValueString:self.layer->getBackgroundPattern()]; } - (void)setBackgroundOpacity:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)backgroundOpacity { @@ -55,7 +55,7 @@ } - (id <MGLStyleAttributeValue>)backgroundOpacity { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getBackgroundOpacity()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getBackgroundOpacity()]; } @end |