From 9d368ea98d096c1eed2c1eb7edc4a37ff31b03b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Thu, 25 Aug 2016 21:59:55 -0700 Subject: [ios, macos] Mark MGLStyleLayer properties null_resettable If the property is unset, return the default value. Fixes #6126. --- platform/darwin/src/MGLRasterStyleLayer.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'platform/darwin/src/MGLRasterStyleLayer.h') diff --git a/platform/darwin/src/MGLRasterStyleLayer.h b/platform/darwin/src/MGLRasterStyleLayer.h index 9284221cec..5c0fd91307 100644 --- a/platform/darwin/src/MGLRasterStyleLayer.h +++ b/platform/darwin/src/MGLRasterStyleLayer.h @@ -13,55 +13,55 @@ NS_ASSUME_NONNULL_BEGIN /** The opacity at which the image 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 rasterOpacity; +@property (nonatomic, null_resettable) id rasterOpacity; /** Rotates hues around the color wheel. This property is measured in degrees. - If this property is set to `nil`, the layer uses an implicit default value of `0`. + The default value of this property is `0`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id rasterHueRotate; +@property (nonatomic, null_resettable) id rasterHueRotate; /** Increase or reduce the brightness of the image. The value is the minimum brightness. - If this property is set to `nil`, the layer uses an implicit default value of `0`. + The default value of this property is `0`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id rasterBrightnessMin; +@property (nonatomic, null_resettable) id rasterBrightnessMin; /** Increase or reduce the brightness of the image. The value is the maximum brightness. - 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 rasterBrightnessMax; +@property (nonatomic, null_resettable) id rasterBrightnessMax; /** Increase or reduce the saturation of the image. - If this property is set to `nil`, the layer uses an implicit default value of `0`. + The default value of this property is `0`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id rasterSaturation; +@property (nonatomic, null_resettable) id rasterSaturation; /** Increase or reduce the contrast of the image. - If this property is set to `nil`, the layer uses an implicit default value of `0`. + The default value of this property is `0`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id rasterContrast; +@property (nonatomic, null_resettable) id rasterContrast; /** Fade duration when a new tile is added. This property is measured in milliseconds. - If this property is set to `nil`, the layer uses an implicit default value of `300`. + The default value of this property is `300`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id rasterFadeDuration; +@property (nonatomic, null_resettable) id rasterFadeDuration; @end -- cgit v1.2.1