diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2016-08-15 13:47:25 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2016-08-16 11:29:26 -0700 |
commit | 01b94de107de875a6889258e72e5e060c0de0881 (patch) | |
tree | de59c3fe781dcfeebf8f19c77f67b623bd205a31 /platform/darwin/src/MGLRasterStyleLayer.mm | |
parent | 31f15c6c62960c25deebf9475014090b696d42e1 (diff) | |
download | qtlocation-mapboxgl-01b94de107de875a6889258e72e5e060c0de0881.tar.gz |
fixes #5957: automatically call update() for iOS runtime style API
Diffstat (limited to 'platform/darwin/src/MGLRasterStyleLayer.mm')
-rw-r--r-- | platform/darwin/src/MGLRasterStyleLayer.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLRasterStyleLayer.mm b/platform/darwin/src/MGLRasterStyleLayer.mm index f976f3ddaf..fc2a407054 100644 --- a/platform/darwin/src/MGLRasterStyleLayer.mm +++ b/platform/darwin/src/MGLRasterStyleLayer.mm @@ -1,6 +1,7 @@ // This file is generated. // Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`. +#import "MGLBaseStyleLayer_Private.hpp" #import "MGLStyleLayer_Private.hpp" #import "MGLStyleAttributeValue.h" #import "MGLRasterStyleLayer.h" @@ -32,6 +33,7 @@ - (void)setRasterOpacity:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)rasterOpacity { self.layer->setRasterOpacity(rasterOpacity.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)rasterOpacity { @@ -40,6 +42,7 @@ - (void)setRasterHueRotate:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)rasterHueRotate { self.layer->setRasterHueRotate(rasterHueRotate.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)rasterHueRotate { @@ -48,6 +51,7 @@ - (void)setRasterBrightnessMin:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)rasterBrightnessMin { self.layer->setRasterBrightnessMin(rasterBrightnessMin.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)rasterBrightnessMin { @@ -56,6 +60,7 @@ - (void)setRasterBrightnessMax:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)rasterBrightnessMax { self.layer->setRasterBrightnessMax(rasterBrightnessMax.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)rasterBrightnessMax { @@ -64,6 +69,7 @@ - (void)setRasterSaturation:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)rasterSaturation { self.layer->setRasterSaturation(rasterSaturation.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)rasterSaturation { @@ -72,6 +78,7 @@ - (void)setRasterContrast:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)rasterContrast { self.layer->setRasterContrast(rasterContrast.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)rasterContrast { @@ -80,6 +87,7 @@ - (void)setRasterFadeDuration:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)rasterFadeDuration { self.layer->setRasterFadeDuration(rasterFadeDuration.mbgl_floatPropertyValue); + [self update]; } - (id <MGLStyleAttributeValue>)rasterFadeDuration { |