diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index 0419edd39..dbdcb9121 100644 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -157,26 +157,27 @@ global.parseColor = function (str) { global.describeValue = function (value, property, layerType) { switch (property.type) { case 'boolean': - return value ? '`YES`' : '`NO`'; + return 'an `NSNumber` object containing ' + (value ? '`YES`' : '`NO`'); case 'number': + return 'an `NSNumber` object containing the float `' + value + '`'; case 'string': - return '`' + value + '`'; + return 'the string `' + value + '`'; case 'enum': let objCType = `${prefix}${camelize(layerType)}${suffix}${camelize(property.name)}`; - return '`' + `${objCType}${camelize(value)}` + '`'; + return 'an `NSValue` object containing `' + `${objCType}${camelize(value)}` + '`'; case 'color': let color = parseColor(value); if (!color) { throw new Error(`unrecognized color format in default value of ${property.name}`); } if (color.r === 0 && color.g === 0 && color.b === 0 && color.a === 0) { - return '`clearColor`'; + return '`NSColor.clearColor` or `UIColor.clearColor`'; } if (color.r === 0 && color.g === 0 && color.b === 0 && color.a === 1) { - return '`blackColor`'; + return '`NSColor.blackColor` or `UIColor.blackColor`'; } if (color.r === 1 && color.g === 1 && color.b === 1 && color.a === 1) { - return '`whiteColor`'; + return '`NSColor.whiteColor` or `UIColor.whiteColor`'; } return 'an `NSColor` or `UIColor`' + ` object whose RGB value is ${color.r}, ${color.g}, ${color.b} and whose alpha value is ${color.a}`; case 'array': @@ -186,14 +187,14 @@ global.describeValue = function (value, property, layerType) { } if (property.name.indexOf('padding') !== -1) { if (value[0] === 0 && value[1] === 0 && value[2] === 0 && value[3] === 0) { - return '`NSEdgeInsetsZero` or `UIEdgeInsetsZero`'; + return 'an `NSValue` object containing `NSEdgeInsetsZero` or `UIEdgeInsetsZero`'; } - return `${value[0]}${units} on the top, ${value[3]}${units} on the left, ${value[2]}${units} on the bottom, and ${value[1]}${units} on the right`; + return 'an `NSValue` object containing an `NSEdgeInsets` or `UIEdgeInsets` struct set to' + ` ${value[0]}${units} on the top, ${value[3]}${units} on the left, ${value[2]}${units} on the bottom, and ${value[1]}${units} on the right`; } if (property.name.indexOf('offset') !== -1 || property.name.indexOf('translate') !== -1) { - return `${value[0]}${units} from the left and ${value[1]}${units} from the top`; + return 'an `NSValue` object containing a `CGVector` struct set to' + ` ${value[0]}${units} from the left and ${value[1]}${units} from the top`; } - return '`' + value.join('`, `') + '`'; + return 'the array `' + value.join('`, `') + '`'; default: throw new Error(`unknown type for ${property.name}`); } diff --git a/platform/darwin/src/MGLBackgroundStyleLayer.h b/platform/darwin/src/MGLBackgroundStyleLayer.h index 3fbd7e386..577767814 100644 --- a/platform/darwin/src/MGLBackgroundStyleLayer.h +++ b/platform/darwin/src/MGLBackgroundStyleLayer.h @@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN /** The color with which the background will be drawn. - The default value of this property is `blackColor`. Set this property to `nil` to reset it to the default value. + The default value of this property is `NSColor.blackColor` or `UIColor.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. */ @@ -27,7 +27,7 @@ NS_ASSUME_NONNULL_BEGIN /** The opacity at which the background will be drawn. - The default value of this property is `1`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id backgroundOpacity; diff --git a/platform/darwin/src/MGLCircleStyleLayer.h b/platform/darwin/src/MGLCircleStyleLayer.h index 4c51c453c..e489bd4e5 100644 --- a/platform/darwin/src/MGLCircleStyleLayer.h +++ b/platform/darwin/src/MGLCircleStyleLayer.h @@ -25,28 +25,28 @@ typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCirclePitchScale) { This property is measured in points. - The default value of this property is `5`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `5`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id circleRadius; /** The color of the circle. - The default value of this property is `blackColor`. Set this property to `nil` to reset it to the default value. + The default value of this property is `NSColor.blackColor` or `UIColor.blackColor`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id 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 value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id 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 value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id circleOpacity; @@ -55,14 +55,14 @@ typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCirclePitchScale) { This property is measured in points. - The default value of this property is 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing a `CGVector` struct set to 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id circleTranslate; /** Control whether the translation is relative to the map (north) or viewport (screen) - The default value of this property is `MGLCircleStyleLayerCircleTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLCircleStyleLayerCircleTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `circleTranslate` is non-`nil`. Otherwise, it is ignored. */ @@ -71,7 +71,7 @@ typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCirclePitchScale) { /** Controls the scaling behavior of the circle when the map is pitched. The value `MGLCircleStyleLayerCirclePitchScaleMap` scales circles according to their apparent distance to the camera. The value `MGLCircleStyleLayerCirclePitchScaleViewport` results in no pitch-related scaling. - The default value of this property is `MGLCircleStyleLayerCirclePitchScaleMap`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLCircleStyleLayerCirclePitchScaleMap`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id circlePitchScale; diff --git a/platform/darwin/src/MGLFillStyleLayer.h b/platform/darwin/src/MGLFillStyleLayer.h index c1adc3093..bbf284833 100644 --- a/platform/darwin/src/MGLFillStyleLayer.h +++ b/platform/darwin/src/MGLFillStyleLayer.h @@ -18,21 +18,21 @@ typedef NS_ENUM(NSUInteger, MGLFillStyleLayerFillTranslateAnchor) { /** Whether or not the fill should be antialiased. - The default value of this property is `YES`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `YES`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id fillAntialias; /** The opacity of the entire fill layer. In contrast to the fill-color, this value will also affect the 1pt stroke around the fill, if the stroke is used. - The default value of this property is `1`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id fillOpacity; /** The color of the filled part of this layer. This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1pt stroke, if it is used. - The default value of this property is `blackColor`. Set this property to `nil` to reset it to the default value. + The default value of this property is `NSColor.blackColor` or `UIColor.blackColor`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `fillPattern` is set to `nil`. Otherwise, it is ignored. */ @@ -41,7 +41,7 @@ typedef NS_ENUM(NSUInteger, MGLFillStyleLayerFillTranslateAnchor) { /** The outline color of the fill. Matches the value of `fillColor` if unspecified. - This property is only applied to the style if `fillPattern` is set to `nil`, and `fillAntialias` is set to `YES`. Otherwise, it is ignored. + This property is only applied to the style if `fillPattern` is set to `nil`, and `fillAntialias` is set to an `NSNumber` object containing `YES`. Otherwise, it is ignored. */ @property (nonatomic, null_resettable) id fillOutlineColor; @@ -50,14 +50,14 @@ typedef NS_ENUM(NSUInteger, MGLFillStyleLayerFillTranslateAnchor) { This property is measured in points. - The default value of this property is 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing a `CGVector` struct set to 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id fillTranslate; /** Control whether the translation is relative to the map (north) or viewport (screen) - The default value of this property is `MGLFillStyleLayerFillTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLFillStyleLayerFillTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `fillTranslate` is non-`nil`. Otherwise, it is ignored. */ diff --git a/platform/darwin/src/MGLLineStyleLayer.h b/platform/darwin/src/MGLLineStyleLayer.h index 5dd87c355..a52664c53 100644 --- a/platform/darwin/src/MGLLineStyleLayer.h +++ b/platform/darwin/src/MGLLineStyleLayer.h @@ -30,32 +30,32 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) { /** The display of line endings. - The default value of this property is `MGLLineStyleLayerLineCapButt`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLLineStyleLayerLineCapButt`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id lineCap; /** The display of lines when joining. - The default value of this property is `MGLLineStyleLayerLineJoinMiter`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLLineStyleLayerLineJoinMiter`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id lineJoin; /** Used to automatically convert miter joins to bevel joins for sharp angles. - The default value of this property is `2`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `2`. Set this property to `nil` to reset it to the default value. - This property is only applied to the style if `lineJoin` is set to `MGLLineStyleLayerLineJoinMiter`. Otherwise, it is ignored. + This property is only applied to the style if `lineJoin` is set to an `NSValue` object containing `MGLLineStyleLayerLineJoinMiter`. Otherwise, it is ignored. */ @property (nonatomic, null_resettable) id lineMiterLimit; /** Used to automatically convert round joins to miter joins for shallow angles. - The default value of this property is `1.05`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1.05`. Set this property to `nil` to reset it to the default value. - This property is only applied to the style if `lineJoin` is set to `MGLLineStyleLayerLineJoinRound`. Otherwise, it is ignored. + This property is only applied to the style if `lineJoin` is set to an `NSValue` object containing `MGLLineStyleLayerLineJoinRound`. Otherwise, it is ignored. */ @property (nonatomic, null_resettable) id lineRoundLimit; @@ -64,14 +64,14 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) { /** The opacity at which the line will be drawn. - The default value of this property is `1`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id lineOpacity; /** The color with which the line will be drawn. - The default value of this property is `blackColor`. Set this property to `nil` to reset it to the default value. + The default value of this property is `NSColor.blackColor` or `UIColor.blackColor`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `linePattern` is set to `nil`. Otherwise, it is ignored. */ @@ -82,14 +82,14 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) { This property is measured in points. - The default value of this property is 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing a `CGVector` struct set to 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id lineTranslate; /** Control whether the translation is relative to the map (north) or viewport (screen) - The default value of this property is `MGLLineStyleLayerLineTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLLineStyleLayerLineTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `lineTranslate` is non-`nil`. Otherwise, it is ignored. */ @@ -100,7 +100,7 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) { This property is measured in points. - The default value of this property is `1`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id lineWidth; @@ -109,7 +109,7 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) { This property is measured in points. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id lineGapWidth; @@ -118,7 +118,7 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) { This property is measured in points. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id lineOffset; @@ -127,7 +127,7 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) { This property is measured in points. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id lineBlur; diff --git a/platform/darwin/src/MGLRasterStyleLayer.h b/platform/darwin/src/MGLRasterStyleLayer.h index 5c0fd9130..213619be0 100644 --- a/platform/darwin/src/MGLRasterStyleLayer.h +++ b/platform/darwin/src/MGLRasterStyleLayer.h @@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN /** The opacity at which the image will be drawn. - The default value of this property is `1`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id rasterOpacity; @@ -22,35 +22,35 @@ NS_ASSUME_NONNULL_BEGIN This property is measured in degrees. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id rasterHueRotate; /** Increase or reduce the brightness of the image. The value is the minimum brightness. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id rasterBrightnessMin; /** Increase or reduce the brightness of the image. The value is the maximum brightness. - The default value of this property is `1`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id rasterBrightnessMax; /** Increase or reduce the saturation of the image. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id rasterSaturation; /** Increase or reduce the contrast of the image. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id rasterContrast; @@ -59,7 +59,7 @@ NS_ASSUME_NONNULL_BEGIN This property is measured in milliseconds. - The default value of this property is `300`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `300`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id rasterFadeDuration; diff --git a/platform/darwin/src/MGLSymbolStyleLayer.h b/platform/darwin/src/MGLSymbolStyleLayer.h index 3db1bf03b..c8a7aff60 100644 --- a/platform/darwin/src/MGLSymbolStyleLayer.h +++ b/platform/darwin/src/MGLSymbolStyleLayer.h @@ -74,7 +74,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Label placement relative to its geometry. `MGLSymbolStyleLayerSymbolPlacementLine` can only be used on LineStrings and Polygons. - The default value of this property is `MGLSymbolStyleLayerSymbolPlacementPoint`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerSymbolPlacementPoint`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id symbolPlacement; @@ -83,23 +83,23 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is `250`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `250`. Set this property to `nil` to reset it to the default value. - This property is only applied to the style if `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`. Otherwise, it is ignored. + This property is only applied to the style if `symbolPlacement` is set to an `NSValue` object containing `MGLSymbolStyleLayerSymbolPlacementLine`. Otherwise, it is ignored. */ @property (nonatomic, null_resettable) id symbolSpacing; /** If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. - The default value of this property is `NO`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `NO`. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id symbolAvoidEdges; /** If true, the icon will be visible even if it collides with other previously drawn symbols. - The default value of this property is `NO`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `NO`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -108,7 +108,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** If true, other symbols can be visible even if they collide with the icon. - The default value of this property is `NO`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `NO`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -117,7 +117,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not. - The default value of this property is `NO`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `NO`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`, and `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -126,7 +126,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Orientation of icon when map is rotated. - The default value of this property is `MGLSymbolStyleLayerIconRotationAlignmentViewport`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerIconRotationAlignmentViewport`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -135,7 +135,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Scale factor for icon. 1 is original size, 3 triples the size. - The default value of this property is `1`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -144,7 +144,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Position and scale an icon by the its corresponding text. - The default value of this property is `MGLSymbolStyleLayerIconTextFitNone`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerIconTextFitNone`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`, and `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -155,7 +155,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is `NSEdgeInsetsZero` or `UIEdgeInsetsZero`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `NSEdgeInsetsZero` or `UIEdgeInsetsZero`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`, and `iconTextFit` is non-`nil`, and `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -171,7 +171,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in degrees. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -182,7 +182,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is `2`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `2`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -191,16 +191,16 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** If true, the icon may be flipped to prevent it from being rendered upside-down. - The default value of this property is `NO`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `NO`. Set this property to `nil` to reset it to the default value. - This property is only applied to the style if `iconImage` is non-`nil`, and `iconRotationAlignment` is set to `MGLSymbolStyleLayerIconRotationAlignmentMap`, and `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`. Otherwise, it is ignored. + This property is only applied to the style if `iconImage` is non-`nil`, and `iconRotationAlignment` is set to an `NSValue` object containing `MGLSymbolStyleLayerIconRotationAlignmentMap`, and `symbolPlacement` is set to an `NSValue` object containing `MGLSymbolStyleLayerSymbolPlacementLine`. Otherwise, it is ignored. */ @property (nonatomic, null_resettable) id iconKeepUpright; /** Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. - The default value of this property is 0 from the left and 0 from the top. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing a `CGVector` struct set to 0 from the left and 0 from the top. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -216,7 +216,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Orientation of text when map is rotated. - The default value of this property is `MGLSymbolStyleLayerTextRotationAlignmentViewport`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextRotationAlignmentViewport`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -225,14 +225,14 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Value to use for a text label. Feature properties are specified using tokens like {field_name}. - The default value of this property is ``. Set this property to `nil` to reset it to the default value. + The default value of this property is the string ``. Set this property to `nil` to reset it to the default value. */ @property (nonatomic, null_resettable) id textField; /** Font stack to use for displaying text. - The default value of this property is `Open Sans Regular`, `Arial Unicode MS Regular`. Set this property to `nil` to reset it to the default value. + The default value of this property is the array `Open Sans Regular`, `Arial Unicode MS Regular`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -243,7 +243,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is `16`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `16`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -254,7 +254,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in ems. - The default value of this property is `10`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `10`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -265,7 +265,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in ems. - The default value of this property is `1.2`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1.2`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -276,7 +276,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in ems. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -285,7 +285,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Text justification options. - The default value of this property is `MGLSymbolStyleLayerTextJustifyCenter`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextJustifyCenter`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -294,7 +294,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Part of the text placed closest to the anchor. - The default value of this property is `MGLSymbolStyleLayerTextAnchorCenter`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextAnchorCenter`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -305,9 +305,9 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in degrees. - The default value of this property is `45`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `45`. Set this property to `nil` to reset it to the default value. - This property is only applied to the style if `textField` is non-`nil`, and `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`. Otherwise, it is ignored. + This property is only applied to the style if `textField` is non-`nil`, and `symbolPlacement` is set to an `NSValue` object containing `MGLSymbolStyleLayerSymbolPlacementLine`. Otherwise, it is ignored. */ @property (nonatomic, null_resettable) id textMaxAngle; @@ -316,7 +316,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in degrees. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -327,7 +327,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is `2`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `2`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -336,16 +336,16 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** If true, the text may be flipped vertically to prevent it from being rendered upside-down. - The default value of this property is `YES`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `YES`. Set this property to `nil` to reset it to the default value. - This property is only applied to the style if `textField` is non-`nil`, and `textRotationAlignment` is set to `MGLSymbolStyleLayerTextRotationAlignmentMap`, and `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`. Otherwise, it is ignored. + This property is only applied to the style if `textField` is non-`nil`, and `textRotationAlignment` is set to an `NSValue` object containing `MGLSymbolStyleLayerTextRotationAlignmentMap`, and `symbolPlacement` is set to an `NSValue` object containing `MGLSymbolStyleLayerSymbolPlacementLine`. Otherwise, it is ignored. */ @property (nonatomic, null_resettable) id textKeepUpright; /** Specifies how to capitalize text, similar to the CSS `text-transform` property. - The default value of this property is `MGLSymbolStyleLayerTextTransformNone`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextTransformNone`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -356,7 +356,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in ems. - The default value of this property is 0 ems from the left and 0 ems from the top. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing a `CGVector` struct set to 0 ems from the left and 0 ems from the top. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -365,7 +365,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** If true, the text will be visible even if it collides with other previously drawn symbols. - The default value of this property is `NO`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `NO`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -374,7 +374,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** If true, other symbols can be visible even if they collide with the text. - The default value of this property is `NO`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `NO`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -383,7 +383,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not. - The default value of this property is `NO`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing `NO`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`, and `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -394,7 +394,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** The opacity at which the icon will be drawn. - The default value of this property is `1`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -403,7 +403,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** The color of the icon. This can only be used with sdf icons. - The default value of this property is `blackColor`. Set this property to `nil` to reset it to the default value. + The default value of this property is `NSColor.blackColor` or `UIColor.blackColor`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -412,7 +412,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** The color of the icon's halo. Icon halos can only be used with sdf icons. - The default value of this property is `clearColor`. Set this property to `nil` to reset it to the default value. + The default value of this property is `NSColor.clearColor` or `UIColor.clearColor`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -423,7 +423,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -434,7 +434,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -445,7 +445,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing a `CGVector` struct set to 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored. */ @@ -454,7 +454,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Control whether the translation is relative to the map (north) or viewport (screen). - The default value of this property is `MGLSymbolStyleLayerIconTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerIconTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `iconImage` is non-`nil`, and `iconTranslate` is non-`nil`. Otherwise, it is ignored. */ @@ -463,7 +463,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** The opacity at which the text will be drawn. - The default value of this property is `1`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -472,7 +472,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** The color with which the text will be drawn. - The default value of this property is `blackColor`. Set this property to `nil` to reset it to the default value. + The default value of this property is `NSColor.blackColor` or `UIColor.blackColor`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -481,7 +481,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** The color of the text's halo, which helps it stand out from backgrounds. - The default value of this property is `clearColor`. Set this property to `nil` to reset it to the default value. + The default value of this property is `NSColor.clearColor` or `UIColor.clearColor`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -492,7 +492,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -503,7 +503,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is `0`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -514,7 +514,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { This property is measured in points. - The default value of this property is 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing a `CGVector` struct set to 0 points from the left and 0 points from the top. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`. Otherwise, it is ignored. */ @@ -523,7 +523,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) { /** Control whether the translation is relative to the map (north) or viewport (screen). - The default value of this property is `MGLSymbolStyleLayerTextTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. + The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextTranslateAnchorMap`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `textField` is non-`nil`, and `textTranslate` is non-`nil`. Otherwise, it is ignored. */