fixes #5957: automatically call update() for iOS runtime style API

This commit is contained in:
Justin R. Miller
2016-08-15 13:47:25 -07:00
parent 31f15c6c62
commit 01b94de107
12 changed files with 120 additions and 14 deletions

View File

@@ -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 {