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/MGLBackgroundStyleLayer.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/MGLBackgroundStyleLayer.mm')
-rw-r--r-- | platform/darwin/src/MGLBackgroundStyleLayer.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLBackgroundStyleLayer.mm b/platform/darwin/src/MGLBackgroundStyleLayer.mm index 66e308bb1f..80f803815c 100644 --- a/platform/darwin/src/MGLBackgroundStyleLayer.mm +++ b/platform/darwin/src/MGLBackgroundStyleLayer.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 "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 { |