summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLCircleStyleLayer.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-08-18 00:36:02 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-08-19 14:20:26 -0700
commit99fc6dfce810b5894b9039c5aabb4fbfd5af0751 (patch)
tree28f312b021590106e1678213ec0ab10bf06c462f /platform/darwin/src/MGLCircleStyleLayer.h
parenta4fcea412239f6936ab0dd0d21abda912e22bd47 (diff)
downloadqtlocation-mapboxgl-99fc6dfce810b5894b9039c5aabb4fbfd5af0751.tar.gz
[ios, macos] Audited generated source/layer headers
Properties representing optional attributes are qualified with null_resettable. The default value is documented.
Diffstat (limited to 'platform/darwin/src/MGLCircleStyleLayer.h')
-rw-r--r--platform/darwin/src/MGLCircleStyleLayer.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/platform/darwin/src/MGLCircleStyleLayer.h b/platform/darwin/src/MGLCircleStyleLayer.h
index c5a344d419..2503595fd1 100644
--- a/platform/darwin/src/MGLCircleStyleLayer.h
+++ b/platform/darwin/src/MGLCircleStyleLayer.h
@@ -4,6 +4,8 @@
#import "MGLStyleAttributeValue.h"
#import "MGLBaseStyleLayer.h"
+NS_ASSUME_NONNULL_BEGIN
+
typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCircleTranslateAnchor) {
MGLCircleStyleLayerCircleTranslateAnchorMap,
MGLCircleStyleLayerCircleTranslateAnchorViewport,
@@ -20,37 +22,53 @@ typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCirclePitchScale) {
/**
Circle radius.
+
+ The default value of this property is `5`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> circleRadius;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circleRadius;
/**
The color of the circle.
+
+ The default value of this property is `#000000`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> circleColor;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circleColor;
/**
Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
+
+ The default value of this property is `0`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> circleBlur;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circleBlur;
/**
The opacity at which the circle will be drawn.
+
+ The default value of this property is `1`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> circleOpacity;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circleOpacity;
/**
The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
+
+ The default value of this property is `0,0`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> circleTranslate;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circleTranslate;
/**
Control whether the translation is relative to the map (north) or viewport (screen)
+
+ The default value of this property is `map`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> circleTranslateAnchor;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circleTranslateAnchor;
/**
Controls the scaling behavior of the circle when the map is pitched. The value `map` scales circles according to their apparent distance to the camera. The value `viewport` results in no pitch-related scaling.
+
+ The default value of this property is `map`. Set this property to `nil` to reset it to the default.
*/
-@property (nonatomic) id <MGLStyleAttributeValue> circlePitchScale;
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circlePitchScale;
@end
+
+NS_ASSUME_NONNULL_END