From 17db5210bf60171ee7dbc15de77fdea53b8f0d4d Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Mon, 21 Nov 2016 14:32:05 +0100 Subject: [ios, macos] rename style spec properties --- platform/darwin/src/MGLFillStyleLayer.mm | 40 ++++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'platform/darwin/src/MGLFillStyleLayer.mm') diff --git a/platform/darwin/src/MGLFillStyleLayer.mm b/platform/darwin/src/MGLFillStyleLayer.mm index d670fd31e9..6f9c68f21f 100644 --- a/platform/darwin/src/MGLFillStyleLayer.mm +++ b/platform/darwin/src/MGLFillStyleLayer.mm @@ -97,16 +97,6 @@ namespace mbgl { return MGLStyleValueTransformer().toStyleValue(propertyValue); } -- (void)setFillOpacity:(MGLStyleValue *)fillOpacity { - auto mbglValue = MGLStyleValueTransformer().toPropertyValue(fillOpacity); - _rawLayer->setFillOpacity(mbglValue); -} - -- (MGLStyleValue *)fillOpacity { - auto propertyValue = _rawLayer->getFillOpacity() ?: _rawLayer->getDefaultFillOpacity(); - return MGLStyleValueTransformer().toStyleValue(propertyValue); -} - - (void)setFillColor:(MGLStyleValue *)fillColor { auto mbglValue = MGLStyleValueTransformer().toPropertyValue(fillColor); _rawLayer->setFillColor(mbglValue); @@ -117,6 +107,16 @@ namespace mbgl { return MGLStyleValueTransformer().toStyleValue(propertyValue); } +- (void)setFillOpacity:(MGLStyleValue *)fillOpacity { + auto mbglValue = MGLStyleValueTransformer().toPropertyValue(fillOpacity); + _rawLayer->setFillOpacity(mbglValue); +} + +- (MGLStyleValue *)fillOpacity { + auto propertyValue = _rawLayer->getFillOpacity() ?: _rawLayer->getDefaultFillOpacity(); + return MGLStyleValueTransformer().toStyleValue(propertyValue); +} + - (void)setFillOutlineColor:(MGLStyleValue *)fillOutlineColor { auto mbglValue = MGLStyleValueTransformer().toPropertyValue(fillOutlineColor); _rawLayer->setFillOutlineColor(mbglValue); @@ -127,6 +127,16 @@ namespace mbgl { return MGLStyleValueTransformer().toStyleValue(propertyValue); } +- (void)setFillPattern:(MGLStyleValue *)fillPattern { + auto mbglValue = MGLStyleValueTransformer().toPropertyValue(fillPattern); + _rawLayer->setFillPattern(mbglValue); +} + +- (MGLStyleValue *)fillPattern { + auto propertyValue = _rawLayer->getFillPattern() ?: _rawLayer->getDefaultFillPattern(); + return MGLStyleValueTransformer().toStyleValue(propertyValue); +} + - (void)setFillTranslate:(MGLStyleValue *)fillTranslate { auto mbglValue = MGLStyleValueTransformer, NSValue *>().toPropertyValue(fillTranslate); _rawLayer->setFillTranslate(mbglValue); @@ -147,15 +157,5 @@ namespace mbgl { return MGLStyleValueTransformer().toEnumStyleValue(propertyValue); } -- (void)setFillPattern:(MGLStyleValue *)fillPattern { - auto mbglValue = MGLStyleValueTransformer().toPropertyValue(fillPattern); - _rawLayer->setFillPattern(mbglValue); -} - -- (MGLStyleValue *)fillPattern { - auto propertyValue = _rawLayer->getFillPattern() ?: _rawLayer->getDefaultFillPattern(); - return MGLStyleValueTransformer().toStyleValue(propertyValue); -} - @end -- cgit v1.2.1