fixes #5957: automatically call update() for iOS runtime style API
This commit is contained in:
@@ -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 "MGLBackgroundStyleLayer.h"
|
||||
@@ -32,6 +33,7 @@
|
||||
|
||||
- (void)setBackgroundColor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)backgroundColor {
|
||||
self.layer->setBackgroundColor(backgroundColor.mbgl_colorPropertyValue);
|
||||
[self update];
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)backgroundColor {
|
||||
@@ -40,6 +42,7 @@
|
||||
|
||||
- (void)setBackgroundPattern:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)backgroundPattern {
|
||||
self.layer->setBackgroundPattern(backgroundPattern.mbgl_stringPropertyValue);
|
||||
[self update];
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)backgroundPattern {
|
||||
@@ -48,6 +51,7 @@
|
||||
|
||||
- (void)setBackgroundOpacity:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)backgroundOpacity {
|
||||
self.layer->setBackgroundOpacity(backgroundOpacity.mbgl_floatPropertyValue);
|
||||
[self update];
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)backgroundOpacity {
|
||||
|
||||
Reference in New Issue
Block a user