summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLBackgroundStyleLayer.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-08-25 21:59:55 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-08-26 15:40:10 -0700
commit9d368ea98d096c1eed2c1eb7edc4a37ff31b03b7 (patch)
tree602b5aaf36a8d3db50e14b58e668f53ffe8d99a0 /platform/darwin/src/MGLBackgroundStyleLayer.h
parent8dff7ab2f0fe1f2d1412e79c99285f1a389e6541 (diff)
downloadqtlocation-mapboxgl-9d368ea98d096c1eed2c1eb7edc4a37ff31b03b7.tar.gz
[ios, macos] Mark MGLStyleLayer properties null_resettable
If the property is unset, return the default value. Fixes #6126.
Diffstat (limited to 'platform/darwin/src/MGLBackgroundStyleLayer.h')
-rw-r--r--platform/darwin/src/MGLBackgroundStyleLayer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/platform/darwin/src/MGLBackgroundStyleLayer.h b/platform/darwin/src/MGLBackgroundStyleLayer.h
index 43802bc250..3fbd7e3869 100644
--- a/platform/darwin/src/MGLBackgroundStyleLayer.h
+++ b/platform/darwin/src/MGLBackgroundStyleLayer.h
@@ -13,23 +13,23 @@ NS_ASSUME_NONNULL_BEGIN
/**
The color with which the background will be drawn.
- If this property is set to `nil`, the layer uses an implicit default value of `blackColor`.
+ The default value of this property is `blackColor`. Set this property to `nil` to reset it to the default value.
This property is only applied to the style if `backgroundPattern` is set to `nil`. Otherwise, it is ignored.
*/
-@property (nonatomic, nullable) id <MGLStyleAttributeValue> backgroundColor;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> backgroundColor;
/**
Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
*/
-@property (nonatomic, nullable) id <MGLStyleAttributeValue> backgroundPattern;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> backgroundPattern;
/**
The opacity at which the background will be drawn.
- If this property is set to `nil`, the layer uses an implicit default value of `1`.
+ The default value of this property is `1`. Set this property to `nil` to reset it to the default value.
*/
-@property (nonatomic, nullable) id <MGLStyleAttributeValue> backgroundOpacity;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> backgroundOpacity;
@end