[ios, macos] Simplified style property enum names
The name of each enumeration type no longer refers to the layer type that uses it.
This commit is contained in:
committed by
Minh Nguyễn
parent
c1b05c8f5b
commit
c78b5b1d7e
@@ -25,7 +25,7 @@ global.objCName = function (property) {
|
||||
}
|
||||
|
||||
global.objCType = function (layerType, propertyName) {
|
||||
return `${prefix}${camelize(layerType)}${suffix}${camelize(propertyName)}`;
|
||||
return `${prefix}${camelize(propertyName)}`;
|
||||
}
|
||||
|
||||
global.arrayType = function (property) {
|
||||
|
||||
@@ -9,29 +9,29 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCircleTranslateAnchor) {
|
||||
typedef NS_ENUM(NSUInteger, MGLCircleTranslateAnchor) {
|
||||
/**
|
||||
The circle is translated relative to the map.
|
||||
*/
|
||||
MGLCircleStyleLayerCircleTranslateAnchorMap,
|
||||
MGLCircleTranslateAnchorMap,
|
||||
/**
|
||||
The circle is translated relative to the viewport.
|
||||
*/
|
||||
MGLCircleStyleLayerCircleTranslateAnchorViewport,
|
||||
MGLCircleTranslateAnchorViewport,
|
||||
};
|
||||
|
||||
/**
|
||||
Controls the scaling behavior of the circle when the map is pitched.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCirclePitchScale) {
|
||||
typedef NS_ENUM(NSUInteger, MGLCirclePitchScale) {
|
||||
/**
|
||||
Circles are scaled according to their apparent distance to the camera.
|
||||
*/
|
||||
MGLCircleStyleLayerCirclePitchScaleMap,
|
||||
MGLCirclePitchScaleMap,
|
||||
/**
|
||||
Circles are not scaled.
|
||||
*/
|
||||
MGLCircleStyleLayerCirclePitchScaleViewport,
|
||||
MGLCirclePitchScaleViewport,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -95,7 +95,7 @@ typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCirclePitchScale) {
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLCircleStyleLayerCircleTranslateAnchorMap`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLCircleTranslateAnchorMap`. 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.
|
||||
*/
|
||||
@@ -104,7 +104,7 @@ typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCirclePitchScale) {
|
||||
/**
|
||||
Controls the scaling behavior of the circle when the map is pitched.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLCircleStyleLayerCirclePitchScaleMap`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLCirclePitchScaleMap`. Set this property to `nil` to reset it to the default value.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circlePitchScale;
|
||||
|
||||
|
||||
@@ -89,19 +89,19 @@
|
||||
}
|
||||
|
||||
- (void)setCircleTranslateAnchor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)circleTranslateAnchor {
|
||||
MGLSetEnumProperty(circleTranslateAnchor, CircleTranslateAnchor, TranslateAnchorType, MGLCircleStyleLayerCircleTranslateAnchor);
|
||||
MGLSetEnumProperty(circleTranslateAnchor, CircleTranslateAnchor, TranslateAnchorType, MGLCircleTranslateAnchor);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)circleTranslateAnchor {
|
||||
MGLGetEnumProperty(CircleTranslateAnchor, TranslateAnchorType, MGLCircleStyleLayerCircleTranslateAnchor);
|
||||
MGLGetEnumProperty(CircleTranslateAnchor, TranslateAnchorType, MGLCircleTranslateAnchor);
|
||||
}
|
||||
|
||||
- (void)setCirclePitchScale:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)circlePitchScale {
|
||||
MGLSetEnumProperty(circlePitchScale, CirclePitchScale, CirclePitchScaleType, MGLCircleStyleLayerCirclePitchScale);
|
||||
MGLSetEnumProperty(circlePitchScale, CirclePitchScale, CirclePitchScaleType, MGLCirclePitchScale);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)circlePitchScale {
|
||||
MGLGetEnumProperty(CirclePitchScale, CirclePitchScaleType, MGLCircleStyleLayerCirclePitchScale);
|
||||
MGLGetEnumProperty(CirclePitchScale, CirclePitchScaleType, MGLCirclePitchScale);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -9,15 +9,15 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLFillStyleLayerFillTranslateAnchor) {
|
||||
typedef NS_ENUM(NSUInteger, MGLFillTranslateAnchor) {
|
||||
/**
|
||||
The fill is translated relative to the map.
|
||||
*/
|
||||
MGLFillStyleLayerFillTranslateAnchorMap,
|
||||
MGLFillTranslateAnchorMap,
|
||||
/**
|
||||
The fill is translated relative to the viewport.
|
||||
*/
|
||||
MGLFillStyleLayerFillTranslateAnchorViewport,
|
||||
MGLFillTranslateAnchorViewport,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -83,7 +83,7 @@ typedef NS_ENUM(NSUInteger, MGLFillStyleLayerFillTranslateAnchor) {
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLFillStyleLayerFillTranslateAnchorMap`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLFillTranslateAnchorMap`. 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.
|
||||
*/
|
||||
|
||||
@@ -89,11 +89,11 @@
|
||||
}
|
||||
|
||||
- (void)setFillTranslateAnchor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)fillTranslateAnchor {
|
||||
MGLSetEnumProperty(fillTranslateAnchor, FillTranslateAnchor, TranslateAnchorType, MGLFillStyleLayerFillTranslateAnchor);
|
||||
MGLSetEnumProperty(fillTranslateAnchor, FillTranslateAnchor, TranslateAnchorType, MGLFillTranslateAnchor);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)fillTranslateAnchor {
|
||||
MGLGetEnumProperty(FillTranslateAnchor, TranslateAnchorType, MGLFillStyleLayerFillTranslateAnchor);
|
||||
MGLGetEnumProperty(FillTranslateAnchor, TranslateAnchorType, MGLFillTranslateAnchor);
|
||||
}
|
||||
|
||||
- (void)setFillPattern:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)fillPattern {
|
||||
|
||||
@@ -9,51 +9,51 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
The display of line endings.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineCap) {
|
||||
typedef NS_ENUM(NSUInteger, MGLLineCap) {
|
||||
/**
|
||||
A cap with a squared-off end which is drawn to the exact endpoint of the line.
|
||||
*/
|
||||
MGLLineStyleLayerLineCapButt,
|
||||
MGLLineCapButt,
|
||||
/**
|
||||
A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line.
|
||||
*/
|
||||
MGLLineStyleLayerLineCapRound,
|
||||
MGLLineCapRound,
|
||||
/**
|
||||
A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width.
|
||||
*/
|
||||
MGLLineStyleLayerLineCapSquare,
|
||||
MGLLineCapSquare,
|
||||
};
|
||||
|
||||
/**
|
||||
The display of lines when joining.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineJoin) {
|
||||
typedef NS_ENUM(NSUInteger, MGLLineJoin) {
|
||||
/**
|
||||
A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width.
|
||||
*/
|
||||
MGLLineStyleLayerLineJoinBevel,
|
||||
MGLLineJoinBevel,
|
||||
/**
|
||||
A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line.
|
||||
*/
|
||||
MGLLineStyleLayerLineJoinRound,
|
||||
MGLLineJoinRound,
|
||||
/**
|
||||
A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet.
|
||||
*/
|
||||
MGLLineStyleLayerLineJoinMiter,
|
||||
MGLLineJoinMiter,
|
||||
};
|
||||
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) {
|
||||
typedef NS_ENUM(NSUInteger, MGLLineTranslateAnchor) {
|
||||
/**
|
||||
The line is translated relative to the map.
|
||||
*/
|
||||
MGLLineStyleLayerLineTranslateAnchorMap,
|
||||
MGLLineTranslateAnchorMap,
|
||||
/**
|
||||
The line is translated relative to the viewport.
|
||||
*/
|
||||
MGLLineStyleLayerLineTranslateAnchorViewport,
|
||||
MGLLineTranslateAnchorViewport,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -69,14 +69,14 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) {
|
||||
/**
|
||||
The display of line endings.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLLineStyleLayerLineCapButt`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLLineCapButt`. Set this property to `nil` to reset it to the default value.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> lineCap;
|
||||
|
||||
/**
|
||||
The display of lines when joining.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLLineStyleLayerLineJoinMiter`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLLineJoinMiter`. Set this property to `nil` to reset it to the default value.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> lineJoin;
|
||||
|
||||
@@ -85,7 +85,7 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) {
|
||||
|
||||
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 an `NSValue` object containing `MGLLineStyleLayerLineJoinMiter`. Otherwise, it is ignored.
|
||||
This property is only applied to the style if `lineJoin` is set to an `NSValue` object containing `MGLLineJoinMiter`. Otherwise, it is ignored.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> lineMiterLimit;
|
||||
|
||||
@@ -94,7 +94,7 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) {
|
||||
|
||||
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 an `NSValue` object containing `MGLLineStyleLayerLineJoinRound`. Otherwise, it is ignored.
|
||||
This property is only applied to the style if `lineJoin` is set to an `NSValue` object containing `MGLLineJoinRound`. Otherwise, it is ignored.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> lineRoundLimit;
|
||||
|
||||
@@ -139,7 +139,7 @@ typedef NS_ENUM(NSUInteger, MGLLineStyleLayerLineTranslateAnchor) {
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLLineStyleLayerLineTranslateAnchorMap`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLLineTranslateAnchorMap`. 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.
|
||||
*/
|
||||
|
||||
@@ -49,19 +49,19 @@
|
||||
#pragma mark - Accessing the Layout Attributes
|
||||
|
||||
- (void)setLineCap:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)lineCap {
|
||||
MGLSetEnumProperty(lineCap, LineCap, LineCapType, MGLLineStyleLayerLineCap);
|
||||
MGLSetEnumProperty(lineCap, LineCap, LineCapType, MGLLineCap);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)lineCap {
|
||||
MGLGetEnumProperty(LineCap, LineCapType, MGLLineStyleLayerLineCap);
|
||||
MGLGetEnumProperty(LineCap, LineCapType, MGLLineCap);
|
||||
}
|
||||
|
||||
- (void)setLineJoin:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)lineJoin {
|
||||
MGLSetEnumProperty(lineJoin, LineJoin, LineJoinType, MGLLineStyleLayerLineJoin);
|
||||
MGLSetEnumProperty(lineJoin, LineJoin, LineJoinType, MGLLineJoin);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)lineJoin {
|
||||
MGLGetEnumProperty(LineJoin, LineJoinType, MGLLineStyleLayerLineJoin);
|
||||
MGLGetEnumProperty(LineJoin, LineJoinType, MGLLineJoin);
|
||||
}
|
||||
|
||||
- (void)setLineMiterLimit:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)lineMiterLimit {
|
||||
@@ -107,11 +107,11 @@
|
||||
}
|
||||
|
||||
- (void)setLineTranslateAnchor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)lineTranslateAnchor {
|
||||
MGLSetEnumProperty(lineTranslateAnchor, LineTranslateAnchor, TranslateAnchorType, MGLLineStyleLayerLineTranslateAnchor);
|
||||
MGLSetEnumProperty(lineTranslateAnchor, LineTranslateAnchor, TranslateAnchorType, MGLLineTranslateAnchor);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)lineTranslateAnchor {
|
||||
MGLGetEnumProperty(LineTranslateAnchor, TranslateAnchorType, MGLLineStyleLayerLineTranslateAnchor);
|
||||
MGLGetEnumProperty(LineTranslateAnchor, TranslateAnchorType, MGLLineTranslateAnchor);
|
||||
}
|
||||
|
||||
- (void)setLineWidth:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)lineWidth {
|
||||
|
||||
@@ -22,12 +22,12 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
<%- propertyDoc(property.name, property, type) %>
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(property.name) %>) {
|
||||
typedef NS_ENUM(NSUInteger, MGL<%- camelize(property.name) %>) {
|
||||
<% for (const value in property.values) { -%>
|
||||
/**
|
||||
<%- propertyDoc(property.name, property.values[value], type) %>
|
||||
*/
|
||||
MGL<%- camelize(type) %>StyleLayer<%- camelize(property.name) %><%- camelize(value) %>,
|
||||
MGL<%- camelize(property.name) %><%- camelize(value) %>,
|
||||
<% } -%>
|
||||
};
|
||||
|
||||
@@ -38,12 +38,12 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(prope
|
||||
/**
|
||||
<%- propertyDoc(property.name, property, type) %>
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(property.name) %>) {
|
||||
typedef NS_ENUM(NSUInteger, MGL<%- camelize(property.name) %>) {
|
||||
<% for (const value in property.values) { -%>
|
||||
/**
|
||||
<%- propertyDoc(property.name, property.values[value], type) %>
|
||||
*/
|
||||
MGL<%- camelize(type) %>StyleLayer<%- camelize(property.name) %><%- camelize(value) %>,
|
||||
MGL<%- camelize(property.name) %><%- camelize(value) %>,
|
||||
<% } -%>
|
||||
};
|
||||
|
||||
|
||||
@@ -9,197 +9,197 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
Label placement relative to its geometry.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerSymbolPlacement) {
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolPlacement) {
|
||||
/**
|
||||
The label is placed at the point where the geometry is located.
|
||||
*/
|
||||
MGLSymbolStyleLayerSymbolPlacementPoint,
|
||||
MGLSymbolPlacementPoint,
|
||||
/**
|
||||
The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries.
|
||||
*/
|
||||
MGLSymbolStyleLayerSymbolPlacementLine,
|
||||
MGLSymbolPlacementLine,
|
||||
};
|
||||
|
||||
/**
|
||||
In combination with `symbolPlacement`, determines the rotation behavior of icons.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerIconRotationAlignment) {
|
||||
typedef NS_ENUM(NSUInteger, MGLIconRotationAlignment) {
|
||||
/**
|
||||
When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementPoint`, aligns icons east-west. When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`, aligns icon x-axes with the line.
|
||||
When `symbolPlacement` is set to `MGLSymbolPlacementPoint`, aligns icons east-west. When `symbolPlacement` is set to `MGLSymbolPlacementLine`, aligns icon x-axes with the line.
|
||||
*/
|
||||
MGLSymbolStyleLayerIconRotationAlignmentMap,
|
||||
MGLIconRotationAlignmentMap,
|
||||
/**
|
||||
Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbolPlacement`.
|
||||
*/
|
||||
MGLSymbolStyleLayerIconRotationAlignmentViewport,
|
||||
MGLIconRotationAlignmentViewport,
|
||||
/**
|
||||
When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementPoint`, this is equivalent to `MGLSymbolStyleLayerIconRotationAlignmentViewport`. When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`, this is equivalent to `MGLSymbolStyleLayerIconRotationAlignmentMap`.
|
||||
When `symbolPlacement` is set to `MGLSymbolPlacementPoint`, this is equivalent to `MGLIconRotationAlignmentViewport`. When `symbolPlacement` is set to `MGLSymbolPlacementLine`, this is equivalent to `MGLIconRotationAlignmentMap`.
|
||||
*/
|
||||
MGLSymbolStyleLayerIconRotationAlignmentAuto,
|
||||
MGLIconRotationAlignmentAuto,
|
||||
};
|
||||
|
||||
/**
|
||||
Scales the icon to fit around the associated text.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerIconTextFit) {
|
||||
typedef NS_ENUM(NSUInteger, MGLIconTextFit) {
|
||||
/**
|
||||
The icon is displayed at its intrinsic aspect ratio.
|
||||
*/
|
||||
MGLSymbolStyleLayerIconTextFitNone,
|
||||
MGLIconTextFitNone,
|
||||
/**
|
||||
The icon is scaled in the x-dimension to fit the width of the text.
|
||||
*/
|
||||
MGLSymbolStyleLayerIconTextFitWidth,
|
||||
MGLIconTextFitWidth,
|
||||
/**
|
||||
The icon is scaled in the y-dimension to fit the height of the text.
|
||||
*/
|
||||
MGLSymbolStyleLayerIconTextFitHeight,
|
||||
MGLIconTextFitHeight,
|
||||
/**
|
||||
The icon is scaled in both x- and y-dimensions.
|
||||
*/
|
||||
MGLSymbolStyleLayerIconTextFitBoth,
|
||||
MGLIconTextFitBoth,
|
||||
};
|
||||
|
||||
/**
|
||||
Orientation of text when map is pitched.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextPitchAlignment) {
|
||||
typedef NS_ENUM(NSUInteger, MGLTextPitchAlignment) {
|
||||
/**
|
||||
The text is aligned to the plane of the map.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextPitchAlignmentMap,
|
||||
MGLTextPitchAlignmentMap,
|
||||
/**
|
||||
The text is aligned to the plane of the viewport.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextPitchAlignmentViewport,
|
||||
MGLTextPitchAlignmentViewport,
|
||||
/**
|
||||
Automatically matches the value of `textRotationAlignment`.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextPitchAlignmentAuto,
|
||||
MGLTextPitchAlignmentAuto,
|
||||
};
|
||||
|
||||
/**
|
||||
In combination with `symbolPlacement`, determines the rotation behavior of the individual glyphs forming the text.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextRotationAlignment) {
|
||||
typedef NS_ENUM(NSUInteger, MGLTextRotationAlignment) {
|
||||
/**
|
||||
When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementPoint`, aligns text east-west. When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`, aligns text x-axes with the line.
|
||||
When `symbolPlacement` is set to `MGLSymbolPlacementPoint`, aligns text east-west. When `symbolPlacement` is set to `MGLSymbolPlacementLine`, aligns text x-axes with the line.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextRotationAlignmentMap,
|
||||
MGLTextRotationAlignmentMap,
|
||||
/**
|
||||
Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbolPlacement`.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextRotationAlignmentViewport,
|
||||
MGLTextRotationAlignmentViewport,
|
||||
/**
|
||||
When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementPoint`, this is equivalent to `MGLSymbolStyleLayerTextRotationAlignmentViewport`. When `symbolPlacement` is set to `MGLSymbolStyleLayerSymbolPlacementLine`, this is equivalent to `MGLSymbolStyleLayerTextRotationAlignmentMap`.
|
||||
When `symbolPlacement` is set to `MGLSymbolPlacementPoint`, this is equivalent to `MGLTextRotationAlignmentViewport`. When `symbolPlacement` is set to `MGLSymbolPlacementLine`, this is equivalent to `MGLTextRotationAlignmentMap`.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextRotationAlignmentAuto,
|
||||
MGLTextRotationAlignmentAuto,
|
||||
};
|
||||
|
||||
/**
|
||||
Text justification options.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextJustify) {
|
||||
typedef NS_ENUM(NSUInteger, MGLTextJustify) {
|
||||
/**
|
||||
The text is aligned to the left.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextJustifyLeft,
|
||||
MGLTextJustifyLeft,
|
||||
/**
|
||||
The text is centered.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextJustifyCenter,
|
||||
MGLTextJustifyCenter,
|
||||
/**
|
||||
The text is aligned to the right.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextJustifyRight,
|
||||
MGLTextJustifyRight,
|
||||
};
|
||||
|
||||
/**
|
||||
Part of the text placed closest to the anchor.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextAnchor) {
|
||||
typedef NS_ENUM(NSUInteger, MGLTextAnchor) {
|
||||
/**
|
||||
The center of the text is placed closest to the anchor.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextAnchorCenter,
|
||||
MGLTextAnchorCenter,
|
||||
/**
|
||||
The left side of the text is placed closest to the anchor.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextAnchorLeft,
|
||||
MGLTextAnchorLeft,
|
||||
/**
|
||||
The right side of the text is placed closest to the anchor.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextAnchorRight,
|
||||
MGLTextAnchorRight,
|
||||
/**
|
||||
The top of the text is placed closest to the anchor.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextAnchorTop,
|
||||
MGLTextAnchorTop,
|
||||
/**
|
||||
The bottom of the text is placed closest to the anchor.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextAnchorBottom,
|
||||
MGLTextAnchorBottom,
|
||||
/**
|
||||
The top left corner of the text is placed closest to the anchor.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextAnchorTopLeft,
|
||||
MGLTextAnchorTopLeft,
|
||||
/**
|
||||
The top right corner of the text is placed closest to the anchor.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextAnchorTopRight,
|
||||
MGLTextAnchorTopRight,
|
||||
/**
|
||||
The bottom left corner of the text is placed closest to the anchor.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextAnchorBottomLeft,
|
||||
MGLTextAnchorBottomLeft,
|
||||
/**
|
||||
The bottom right corner of the text is placed closest to the anchor.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextAnchorBottomRight,
|
||||
MGLTextAnchorBottomRight,
|
||||
};
|
||||
|
||||
/**
|
||||
Specifies how to capitalize text, similar to the CSS `text-transform` property.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTransform) {
|
||||
typedef NS_ENUM(NSUInteger, MGLTextTransform) {
|
||||
/**
|
||||
The text is not altered.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextTransformNone,
|
||||
MGLTextTransformNone,
|
||||
/**
|
||||
Forces all letters to be displayed in uppercase.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextTransformUppercase,
|
||||
MGLTextTransformUppercase,
|
||||
/**
|
||||
Forces all letters to be displayed in lowercase.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextTransformLowercase,
|
||||
MGLTextTransformLowercase,
|
||||
};
|
||||
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerIconTranslateAnchor) {
|
||||
typedef NS_ENUM(NSUInteger, MGLIconTranslateAnchor) {
|
||||
/**
|
||||
Icons are translated relative to the map.
|
||||
*/
|
||||
MGLSymbolStyleLayerIconTranslateAnchorMap,
|
||||
MGLIconTranslateAnchorMap,
|
||||
/**
|
||||
Icons are translated relative to the viewport.
|
||||
*/
|
||||
MGLSymbolStyleLayerIconTranslateAnchorViewport,
|
||||
MGLIconTranslateAnchorViewport,
|
||||
};
|
||||
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
typedef NS_ENUM(NSUInteger, MGLTextTranslateAnchor) {
|
||||
/**
|
||||
The text is translated relative to the map.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextTranslateAnchorMap,
|
||||
MGLTextTranslateAnchorMap,
|
||||
/**
|
||||
The text is translated relative to the viewport.
|
||||
*/
|
||||
MGLSymbolStyleLayerTextTranslateAnchorViewport,
|
||||
MGLTextTranslateAnchorViewport,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -215,7 +215,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
/**
|
||||
Label placement relative to its geometry.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerSymbolPlacementPoint`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolPlacementPoint`. Set this property to `nil` to reset it to the default value.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> symbolPlacement;
|
||||
|
||||
@@ -226,7 +226,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
|
||||
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 an `NSValue` object containing `MGLSymbolStyleLayerSymbolPlacementLine`. Otherwise, it is ignored.
|
||||
This property is only applied to the style if `symbolPlacement` is set to an `NSValue` object containing `MGLSymbolPlacementLine`. Otherwise, it is ignored.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> symbolSpacing;
|
||||
|
||||
@@ -267,7 +267,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
/**
|
||||
In combination with `symbolPlacement`, determines the rotation behavior of icons.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerIconRotationAlignmentAuto`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLIconRotationAlignmentAuto`. 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.
|
||||
*/
|
||||
@@ -285,7 +285,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
/**
|
||||
Scales the icon to fit around the associated text.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerIconTextFitNone`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLIconTextFitNone`. 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.
|
||||
*/
|
||||
@@ -298,7 +298,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
|
||||
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 `textField` is non-`nil`, and `iconTextFit` is set to an `NSValue` object containing `MGLSymbolStyleLayerIconTextFitBoth`, `MGLSymbolStyleLayerIconTextFitWidth`, or `MGLSymbolStyleLayerIconTextFitHeight`. Otherwise, it is ignored.
|
||||
This property is only applied to the style if `iconImage` is non-`nil`, and `textField` is non-`nil`, and `iconTextFit` is set to an `NSValue` object containing `MGLIconTextFitBoth`, `MGLIconTextFitWidth`, or `MGLIconTextFitHeight`. Otherwise, it is ignored.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> iconTextFitPadding;
|
||||
|
||||
@@ -334,7 +334,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
|
||||
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 an `NSValue` object containing `MGLSymbolStyleLayerIconRotationAlignmentMap`, and `symbolPlacement` is set to an `NSValue` object containing `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 `MGLIconRotationAlignmentMap`, and `symbolPlacement` is set to an `NSValue` object containing `MGLSymbolPlacementLine`. Otherwise, it is ignored.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> iconKeepUpright;
|
||||
|
||||
@@ -350,7 +350,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
/**
|
||||
Orientation of text when map is pitched.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextPitchAlignmentAuto`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLTextPitchAlignmentAuto`. 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.
|
||||
*/
|
||||
@@ -359,7 +359,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
/**
|
||||
In combination with `symbolPlacement`, determines the rotation behavior of the individual glyphs forming the text.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextRotationAlignmentAuto`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLTextRotationAlignmentAuto`. 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.
|
||||
*/
|
||||
@@ -428,7 +428,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
/**
|
||||
Text justification options.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextJustifyCenter`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLTextJustifyCenter`. 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.
|
||||
*/
|
||||
@@ -437,7 +437,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
/**
|
||||
Part of the text placed closest to the anchor.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextAnchorCenter`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLTextAnchorCenter`. 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.
|
||||
*/
|
||||
@@ -450,7 +450,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
|
||||
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 an `NSValue` object containing `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 `MGLSymbolPlacementLine`. Otherwise, it is ignored.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> textMaxAngle;
|
||||
|
||||
@@ -481,14 +481,14 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
|
||||
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 an `NSValue` object containing `MGLSymbolStyleLayerTextRotationAlignmentMap`, and `symbolPlacement` is set to an `NSValue` object containing `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 `MGLTextRotationAlignmentMap`, and `symbolPlacement` is set to an `NSValue` object containing `MGLSymbolPlacementLine`. Otherwise, it is ignored.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> textKeepUpright;
|
||||
|
||||
/**
|
||||
Specifies how to capitalize text, similar to the CSS `text-transform` property.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextTransformNone`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLTextTransformNone`. 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.
|
||||
*/
|
||||
@@ -619,7 +619,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerIconTranslateAnchorMap`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLIconTranslateAnchorMap`. 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.
|
||||
*/
|
||||
@@ -710,7 +710,7 @@ typedef NS_ENUM(NSUInteger, MGLSymbolStyleLayerTextTranslateAnchor) {
|
||||
/**
|
||||
Controls the translation reference point.
|
||||
|
||||
The default value of this property is an `NSValue` object containing `MGLSymbolStyleLayerTextTranslateAnchorMap`. Set this property to `nil` to reset it to the default value.
|
||||
The default value of this property is an `NSValue` object containing `MGLTextTranslateAnchorMap`. 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.
|
||||
*/
|
||||
|
||||
@@ -49,11 +49,11 @@
|
||||
#pragma mark - Accessing the Layout Attributes
|
||||
|
||||
- (void)setSymbolPlacement:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)symbolPlacement {
|
||||
MGLSetEnumProperty(symbolPlacement, SymbolPlacement, SymbolPlacementType, MGLSymbolStyleLayerSymbolPlacement);
|
||||
MGLSetEnumProperty(symbolPlacement, SymbolPlacement, SymbolPlacementType, MGLSymbolPlacement);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)symbolPlacement {
|
||||
MGLGetEnumProperty(SymbolPlacement, SymbolPlacementType, MGLSymbolStyleLayerSymbolPlacement);
|
||||
MGLGetEnumProperty(SymbolPlacement, SymbolPlacementType, MGLSymbolPlacement);
|
||||
}
|
||||
|
||||
- (void)setSymbolSpacing:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)symbolSpacing {
|
||||
@@ -97,11 +97,11 @@
|
||||
}
|
||||
|
||||
- (void)setIconRotationAlignment:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconRotationAlignment {
|
||||
MGLSetEnumProperty(iconRotationAlignment, IconRotationAlignment, AlignmentType, MGLSymbolStyleLayerIconRotationAlignment);
|
||||
MGLSetEnumProperty(iconRotationAlignment, IconRotationAlignment, AlignmentType, MGLIconRotationAlignment);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)iconRotationAlignment {
|
||||
MGLGetEnumProperty(IconRotationAlignment, AlignmentType, MGLSymbolStyleLayerIconRotationAlignment);
|
||||
MGLGetEnumProperty(IconRotationAlignment, AlignmentType, MGLIconRotationAlignment);
|
||||
}
|
||||
|
||||
- (void)setIconSize:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconSize {
|
||||
@@ -113,11 +113,11 @@
|
||||
}
|
||||
|
||||
- (void)setIconTextFit:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconTextFit {
|
||||
MGLSetEnumProperty(iconTextFit, IconTextFit, IconTextFitType, MGLSymbolStyleLayerIconTextFit);
|
||||
MGLSetEnumProperty(iconTextFit, IconTextFit, IconTextFitType, MGLIconTextFit);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)iconTextFit {
|
||||
MGLGetEnumProperty(IconTextFit, IconTextFitType, MGLSymbolStyleLayerIconTextFit);
|
||||
MGLGetEnumProperty(IconTextFit, IconTextFitType, MGLIconTextFit);
|
||||
}
|
||||
|
||||
- (void)setIconTextFitPadding:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconTextFitPadding {
|
||||
@@ -169,19 +169,19 @@
|
||||
}
|
||||
|
||||
- (void)setTextPitchAlignment:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textPitchAlignment {
|
||||
MGLSetEnumProperty(textPitchAlignment, TextPitchAlignment, AlignmentType, MGLSymbolStyleLayerTextPitchAlignment);
|
||||
MGLSetEnumProperty(textPitchAlignment, TextPitchAlignment, AlignmentType, MGLTextPitchAlignment);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)textPitchAlignment {
|
||||
MGLGetEnumProperty(TextPitchAlignment, AlignmentType, MGLSymbolStyleLayerTextPitchAlignment);
|
||||
MGLGetEnumProperty(TextPitchAlignment, AlignmentType, MGLTextPitchAlignment);
|
||||
}
|
||||
|
||||
- (void)setTextRotationAlignment:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textRotationAlignment {
|
||||
MGLSetEnumProperty(textRotationAlignment, TextRotationAlignment, AlignmentType, MGLSymbolStyleLayerTextRotationAlignment);
|
||||
MGLSetEnumProperty(textRotationAlignment, TextRotationAlignment, AlignmentType, MGLTextRotationAlignment);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)textRotationAlignment {
|
||||
MGLGetEnumProperty(TextRotationAlignment, AlignmentType, MGLSymbolStyleLayerTextRotationAlignment);
|
||||
MGLGetEnumProperty(TextRotationAlignment, AlignmentType, MGLTextRotationAlignment);
|
||||
}
|
||||
|
||||
- (void)setTextField:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textField {
|
||||
@@ -233,19 +233,19 @@
|
||||
}
|
||||
|
||||
- (void)setTextJustify:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textJustify {
|
||||
MGLSetEnumProperty(textJustify, TextJustify, TextJustifyType, MGLSymbolStyleLayerTextJustify);
|
||||
MGLSetEnumProperty(textJustify, TextJustify, TextJustifyType, MGLTextJustify);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)textJustify {
|
||||
MGLGetEnumProperty(TextJustify, TextJustifyType, MGLSymbolStyleLayerTextJustify);
|
||||
MGLGetEnumProperty(TextJustify, TextJustifyType, MGLTextJustify);
|
||||
}
|
||||
|
||||
- (void)setTextAnchor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textAnchor {
|
||||
MGLSetEnumProperty(textAnchor, TextAnchor, TextAnchorType, MGLSymbolStyleLayerTextAnchor);
|
||||
MGLSetEnumProperty(textAnchor, TextAnchor, TextAnchorType, MGLTextAnchor);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)textAnchor {
|
||||
MGLGetEnumProperty(TextAnchor, TextAnchorType, MGLSymbolStyleLayerTextAnchor);
|
||||
MGLGetEnumProperty(TextAnchor, TextAnchorType, MGLTextAnchor);
|
||||
}
|
||||
|
||||
- (void)setTextMaxAngle:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textMaxAngle {
|
||||
@@ -281,11 +281,11 @@
|
||||
}
|
||||
|
||||
- (void)setTextTransform:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textTransform {
|
||||
MGLSetEnumProperty(textTransform, TextTransform, TextTransformType, MGLSymbolStyleLayerTextTransform);
|
||||
MGLSetEnumProperty(textTransform, TextTransform, TextTransformType, MGLTextTransform);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)textTransform {
|
||||
MGLGetEnumProperty(TextTransform, TextTransformType, MGLSymbolStyleLayerTextTransform);
|
||||
MGLGetEnumProperty(TextTransform, TextTransformType, MGLTextTransform);
|
||||
}
|
||||
|
||||
- (void)setTextOffset:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textOffset {
|
||||
@@ -371,11 +371,11 @@
|
||||
}
|
||||
|
||||
- (void)setIconTranslateAnchor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)iconTranslateAnchor {
|
||||
MGLSetEnumProperty(iconTranslateAnchor, IconTranslateAnchor, TranslateAnchorType, MGLSymbolStyleLayerIconTranslateAnchor);
|
||||
MGLSetEnumProperty(iconTranslateAnchor, IconTranslateAnchor, TranslateAnchorType, MGLIconTranslateAnchor);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)iconTranslateAnchor {
|
||||
MGLGetEnumProperty(IconTranslateAnchor, TranslateAnchorType, MGLSymbolStyleLayerIconTranslateAnchor);
|
||||
MGLGetEnumProperty(IconTranslateAnchor, TranslateAnchorType, MGLIconTranslateAnchor);
|
||||
}
|
||||
|
||||
- (void)setTextOpacity:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textOpacity {
|
||||
@@ -427,11 +427,11 @@
|
||||
}
|
||||
|
||||
- (void)setTextTranslateAnchor:(id <MGLStyleAttributeValue, MGLStyleAttributeValue_Private>)textTranslateAnchor {
|
||||
MGLSetEnumProperty(textTranslateAnchor, TextTranslateAnchor, TranslateAnchorType, MGLSymbolStyleLayerTextTranslateAnchor);
|
||||
MGLSetEnumProperty(textTranslateAnchor, TextTranslateAnchor, TranslateAnchorType, MGLTextTranslateAnchor);
|
||||
}
|
||||
|
||||
- (id <MGLStyleAttributeValue>)textTranslateAnchor {
|
||||
MGLGetEnumProperty(TextTranslateAnchor, TranslateAnchorType, MGLSymbolStyleLayerTextTranslateAnchor);
|
||||
MGLGetEnumProperty(TextTranslateAnchor, TranslateAnchorType, MGLTextTranslateAnchor);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
layer.circleBlur = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.circleOpacity = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.circleTranslate = [MGLRuntimeStylingHelper testOffset];
|
||||
layer.circleTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLCircleStyleLayerCircleTranslateAnchorViewport type:@encode(MGLCircleStyleLayerCircleTranslateAnchor)];
|
||||
layer.circlePitchScale = [MGLRuntimeStylingHelper testEnum:MGLCircleStyleLayerCirclePitchScaleViewport type:@encode(MGLCircleStyleLayerCirclePitchScale)];
|
||||
layer.circleTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLCircleTranslateAnchorViewport type:@encode(MGLCircleTranslateAnchor)];
|
||||
layer.circlePitchScale = [MGLRuntimeStylingHelper testEnum:MGLCirclePitchScaleViewport type:@encode(MGLCirclePitchScale)];
|
||||
|
||||
MGLCircleStyleLayer *gLayer = (MGLCircleStyleLayer *)[self.mapView.style layerWithIdentifier:@"layerID"];
|
||||
XCTAssertTrue([gLayer isKindOfClass:[MGLCircleStyleLayer class]]);
|
||||
@@ -31,24 +31,24 @@
|
||||
XCTAssertEqualObjects(gLayer.circleBlur, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.circleOpacity, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.circleTranslate, [MGLRuntimeStylingHelper testOffset]);
|
||||
XCTAssert([(NSValue *)gLayer.circleTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLCircleStyleLayerCircleTranslateAnchorViewport type:@encode(MGLCircleStyleLayerCircleTranslateAnchor)]], @"%@ is not equal to %@", gLayer.circleTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLCircleStyleLayerCircleTranslateAnchorViewport type:@encode(MGLCircleStyleLayerCircleTranslateAnchor)]);
|
||||
XCTAssert([(NSValue *)gLayer.circlePitchScale isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLCircleStyleLayerCirclePitchScaleViewport type:@encode(MGLCircleStyleLayerCirclePitchScale)]], @"%@ is not equal to %@", gLayer.circlePitchScale, [MGLRuntimeStylingHelper testEnum:MGLCircleStyleLayerCirclePitchScaleViewport type:@encode(MGLCircleStyleLayerCirclePitchScale)]);
|
||||
XCTAssert([(NSValue *)gLayer.circleTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLCircleTranslateAnchorViewport type:@encode(MGLCircleTranslateAnchor)]], @"%@ is not equal to %@", gLayer.circleTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLCircleTranslateAnchorViewport type:@encode(MGLCircleTranslateAnchor)]);
|
||||
XCTAssert([(NSValue *)gLayer.circlePitchScale isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLCirclePitchScaleViewport type:@encode(MGLCirclePitchScale)]], @"%@ is not equal to %@", gLayer.circlePitchScale, [MGLRuntimeStylingHelper testEnum:MGLCirclePitchScaleViewport type:@encode(MGLCirclePitchScale)]);
|
||||
|
||||
layer.circleRadius = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.circleColor = [MGLRuntimeStylingHelper testColorFunction];
|
||||
layer.circleBlur = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.circleOpacity = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.circleTranslate = [MGLRuntimeStylingHelper testOffsetFunction];
|
||||
layer.circleTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLCircleStyleLayerCircleTranslateAnchorViewport type:@encode(MGLCircleStyleLayerCircleTranslateAnchor)];
|
||||
layer.circlePitchScale = [MGLRuntimeStylingHelper testEnumFunction:MGLCircleStyleLayerCirclePitchScaleViewport type:@encode(MGLCircleStyleLayerCirclePitchScale)];
|
||||
layer.circleTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLCircleTranslateAnchorViewport type:@encode(MGLCircleTranslateAnchor)];
|
||||
layer.circlePitchScale = [MGLRuntimeStylingHelper testEnumFunction:MGLCirclePitchScaleViewport type:@encode(MGLCirclePitchScale)];
|
||||
|
||||
XCTAssertEqualObjects(gLayer.circleRadius, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.circleColor, [MGLRuntimeStylingHelper testColorFunction]);
|
||||
XCTAssertEqualObjects(gLayer.circleBlur, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.circleOpacity, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.circleTranslate, [MGLRuntimeStylingHelper testOffsetFunction]);
|
||||
XCTAssertEqualObjects(gLayer.circleTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLCircleStyleLayerCircleTranslateAnchorViewport type:@encode(MGLCircleStyleLayerCircleTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.circlePitchScale, [MGLRuntimeStylingHelper testEnumFunction:MGLCircleStyleLayerCirclePitchScaleViewport type:@encode(MGLCircleStyleLayerCirclePitchScale)]);
|
||||
XCTAssertEqualObjects(gLayer.circleTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLCircleTranslateAnchorViewport type:@encode(MGLCircleTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.circlePitchScale, [MGLRuntimeStylingHelper testEnumFunction:MGLCirclePitchScaleViewport type:@encode(MGLCirclePitchScale)]);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
layer.fillColor = [MGLRuntimeStylingHelper testColor];
|
||||
layer.fillOutlineColor = [MGLRuntimeStylingHelper testColor];
|
||||
layer.fillTranslate = [MGLRuntimeStylingHelper testOffset];
|
||||
layer.fillTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLFillStyleLayerFillTranslateAnchorViewport type:@encode(MGLFillStyleLayerFillTranslateAnchor)];
|
||||
layer.fillTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLFillTranslateAnchorViewport type:@encode(MGLFillTranslateAnchor)];
|
||||
layer.fillPattern = [MGLRuntimeStylingHelper testString];
|
||||
|
||||
MGLFillStyleLayer *gLayer = (MGLFillStyleLayer *)[self.mapView.style layerWithIdentifier:@"layerID"];
|
||||
@@ -31,7 +31,7 @@
|
||||
XCTAssertEqualObjects(gLayer.fillColor, [MGLRuntimeStylingHelper testColor]);
|
||||
XCTAssertEqualObjects(gLayer.fillOutlineColor, [MGLRuntimeStylingHelper testColor]);
|
||||
XCTAssertEqualObjects(gLayer.fillTranslate, [MGLRuntimeStylingHelper testOffset]);
|
||||
XCTAssert([(NSValue *)gLayer.fillTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLFillStyleLayerFillTranslateAnchorViewport type:@encode(MGLFillStyleLayerFillTranslateAnchor)]], @"%@ is not equal to %@", gLayer.fillTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLFillStyleLayerFillTranslateAnchorViewport type:@encode(MGLFillStyleLayerFillTranslateAnchor)]);
|
||||
XCTAssert([(NSValue *)gLayer.fillTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLFillTranslateAnchorViewport type:@encode(MGLFillTranslateAnchor)]], @"%@ is not equal to %@", gLayer.fillTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLFillTranslateAnchorViewport type:@encode(MGLFillTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.fillPattern, [MGLRuntimeStylingHelper testString]);
|
||||
|
||||
layer.fillAntialias = [MGLRuntimeStylingHelper testBoolFunction];
|
||||
@@ -39,7 +39,7 @@
|
||||
layer.fillColor = [MGLRuntimeStylingHelper testColorFunction];
|
||||
layer.fillOutlineColor = [MGLRuntimeStylingHelper testColorFunction];
|
||||
layer.fillTranslate = [MGLRuntimeStylingHelper testOffsetFunction];
|
||||
layer.fillTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLFillStyleLayerFillTranslateAnchorViewport type:@encode(MGLFillStyleLayerFillTranslateAnchor)];
|
||||
layer.fillTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLFillTranslateAnchorViewport type:@encode(MGLFillTranslateAnchor)];
|
||||
layer.fillPattern = [MGLRuntimeStylingHelper testStringFunction];
|
||||
|
||||
XCTAssertEqualObjects(gLayer.fillAntialias, [MGLRuntimeStylingHelper testBoolFunction]);
|
||||
@@ -47,7 +47,7 @@
|
||||
XCTAssertEqualObjects(gLayer.fillColor, [MGLRuntimeStylingHelper testColorFunction]);
|
||||
XCTAssertEqualObjects(gLayer.fillOutlineColor, [MGLRuntimeStylingHelper testColorFunction]);
|
||||
XCTAssertEqualObjects(gLayer.fillTranslate, [MGLRuntimeStylingHelper testOffsetFunction]);
|
||||
XCTAssertEqualObjects(gLayer.fillTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLFillStyleLayerFillTranslateAnchorViewport type:@encode(MGLFillStyleLayerFillTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.fillTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLFillTranslateAnchorViewport type:@encode(MGLFillTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.fillPattern, [MGLRuntimeStylingHelper testStringFunction]);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
MGLLineStyleLayer *layer = [[MGLLineStyleLayer alloc] initWithIdentifier:@"layerID" source:source];
|
||||
[self.mapView.style addLayer:layer];
|
||||
|
||||
layer.lineCap = [MGLRuntimeStylingHelper testEnum:MGLLineStyleLayerLineCapSquare type:@encode(MGLLineStyleLayerLineCap)];
|
||||
layer.lineJoin = [MGLRuntimeStylingHelper testEnum:MGLLineStyleLayerLineJoinMiter type:@encode(MGLLineStyleLayerLineJoin)];
|
||||
layer.lineCap = [MGLRuntimeStylingHelper testEnum:MGLLineCapSquare type:@encode(MGLLineCap)];
|
||||
layer.lineJoin = [MGLRuntimeStylingHelper testEnum:MGLLineJoinMiter type:@encode(MGLLineJoin)];
|
||||
layer.lineMiterLimit = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.lineRoundLimit = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.lineOpacity = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.lineColor = [MGLRuntimeStylingHelper testColor];
|
||||
layer.lineTranslate = [MGLRuntimeStylingHelper testOffset];
|
||||
layer.lineTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLLineStyleLayerLineTranslateAnchorViewport type:@encode(MGLLineStyleLayerLineTranslateAnchor)];
|
||||
layer.lineTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLLineTranslateAnchorViewport type:@encode(MGLLineTranslateAnchor)];
|
||||
layer.lineWidth = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.lineGapWidth = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.lineOffset = [MGLRuntimeStylingHelper testNumber];
|
||||
@@ -33,14 +33,14 @@
|
||||
|
||||
MGLLineStyleLayer *gLayer = (MGLLineStyleLayer *)[self.mapView.style layerWithIdentifier:@"layerID"];
|
||||
XCTAssertTrue([gLayer isKindOfClass:[MGLLineStyleLayer class]]);
|
||||
XCTAssert([(NSValue *)gLayer.lineCap isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLLineStyleLayerLineCapSquare type:@encode(MGLLineStyleLayerLineCap)]], @"%@ is not equal to %@", gLayer.lineCap, [MGLRuntimeStylingHelper testEnum:MGLLineStyleLayerLineCapSquare type:@encode(MGLLineStyleLayerLineCap)]);
|
||||
XCTAssert([(NSValue *)gLayer.lineJoin isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLLineStyleLayerLineJoinMiter type:@encode(MGLLineStyleLayerLineJoin)]], @"%@ is not equal to %@", gLayer.lineJoin, [MGLRuntimeStylingHelper testEnum:MGLLineStyleLayerLineJoinMiter type:@encode(MGLLineStyleLayerLineJoin)]);
|
||||
XCTAssert([(NSValue *)gLayer.lineCap isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLLineCapSquare type:@encode(MGLLineCap)]], @"%@ is not equal to %@", gLayer.lineCap, [MGLRuntimeStylingHelper testEnum:MGLLineCapSquare type:@encode(MGLLineCap)]);
|
||||
XCTAssert([(NSValue *)gLayer.lineJoin isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLLineJoinMiter type:@encode(MGLLineJoin)]], @"%@ is not equal to %@", gLayer.lineJoin, [MGLRuntimeStylingHelper testEnum:MGLLineJoinMiter type:@encode(MGLLineJoin)]);
|
||||
XCTAssertEqualObjects(gLayer.lineMiterLimit, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.lineRoundLimit, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.lineOpacity, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.lineColor, [MGLRuntimeStylingHelper testColor]);
|
||||
XCTAssertEqualObjects(gLayer.lineTranslate, [MGLRuntimeStylingHelper testOffset]);
|
||||
XCTAssert([(NSValue *)gLayer.lineTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLLineStyleLayerLineTranslateAnchorViewport type:@encode(MGLLineStyleLayerLineTranslateAnchor)]], @"%@ is not equal to %@", gLayer.lineTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLLineStyleLayerLineTranslateAnchorViewport type:@encode(MGLLineStyleLayerLineTranslateAnchor)]);
|
||||
XCTAssert([(NSValue *)gLayer.lineTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLLineTranslateAnchorViewport type:@encode(MGLLineTranslateAnchor)]], @"%@ is not equal to %@", gLayer.lineTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLLineTranslateAnchorViewport type:@encode(MGLLineTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.lineWidth, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.lineGapWidth, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.lineOffset, [MGLRuntimeStylingHelper testNumber]);
|
||||
@@ -48,14 +48,14 @@
|
||||
XCTAssertEqualObjects(gLayer.lineDasharray, [MGLRuntimeStylingHelper testDashArray]);
|
||||
XCTAssertEqualObjects(gLayer.linePattern, [MGLRuntimeStylingHelper testString]);
|
||||
|
||||
layer.lineCap = [MGLRuntimeStylingHelper testEnumFunction:MGLLineStyleLayerLineCapSquare type:@encode(MGLLineStyleLayerLineCap)];
|
||||
layer.lineJoin = [MGLRuntimeStylingHelper testEnumFunction:MGLLineStyleLayerLineJoinMiter type:@encode(MGLLineStyleLayerLineJoin)];
|
||||
layer.lineCap = [MGLRuntimeStylingHelper testEnumFunction:MGLLineCapSquare type:@encode(MGLLineCap)];
|
||||
layer.lineJoin = [MGLRuntimeStylingHelper testEnumFunction:MGLLineJoinMiter type:@encode(MGLLineJoin)];
|
||||
layer.lineMiterLimit = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.lineRoundLimit = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.lineOpacity = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.lineColor = [MGLRuntimeStylingHelper testColorFunction];
|
||||
layer.lineTranslate = [MGLRuntimeStylingHelper testOffsetFunction];
|
||||
layer.lineTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLLineStyleLayerLineTranslateAnchorViewport type:@encode(MGLLineStyleLayerLineTranslateAnchor)];
|
||||
layer.lineTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLLineTranslateAnchorViewport type:@encode(MGLLineTranslateAnchor)];
|
||||
layer.lineWidth = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.lineGapWidth = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.lineOffset = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
@@ -63,14 +63,14 @@
|
||||
layer.lineDasharray = [MGLRuntimeStylingHelper testDashArrayFunction];
|
||||
layer.linePattern = [MGLRuntimeStylingHelper testStringFunction];
|
||||
|
||||
XCTAssertEqualObjects(gLayer.lineCap, [MGLRuntimeStylingHelper testEnumFunction:MGLLineStyleLayerLineCapSquare type:@encode(MGLLineStyleLayerLineCap)]);
|
||||
XCTAssertEqualObjects(gLayer.lineJoin, [MGLRuntimeStylingHelper testEnumFunction:MGLLineStyleLayerLineJoinMiter type:@encode(MGLLineStyleLayerLineJoin)]);
|
||||
XCTAssertEqualObjects(gLayer.lineCap, [MGLRuntimeStylingHelper testEnumFunction:MGLLineCapSquare type:@encode(MGLLineCap)]);
|
||||
XCTAssertEqualObjects(gLayer.lineJoin, [MGLRuntimeStylingHelper testEnumFunction:MGLLineJoinMiter type:@encode(MGLLineJoin)]);
|
||||
XCTAssertEqualObjects(gLayer.lineMiterLimit, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.lineRoundLimit, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.lineOpacity, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.lineColor, [MGLRuntimeStylingHelper testColorFunction]);
|
||||
XCTAssertEqualObjects(gLayer.lineTranslate, [MGLRuntimeStylingHelper testOffsetFunction]);
|
||||
XCTAssertEqualObjects(gLayer.lineTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLLineStyleLayerLineTranslateAnchorViewport type:@encode(MGLLineStyleLayerLineTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.lineTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLLineTranslateAnchorViewport type:@encode(MGLLineTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.lineWidth, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.lineGapWidth, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.lineOffset, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
|
||||
@@ -16,36 +16,36 @@
|
||||
MGLSymbolStyleLayer *layer = [[MGLSymbolStyleLayer alloc] initWithIdentifier:@"layerID" source:source];
|
||||
[self.mapView.style addLayer:layer];
|
||||
|
||||
layer.symbolPlacement = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerSymbolPlacementLine type:@encode(MGLSymbolStyleLayerSymbolPlacement)];
|
||||
layer.symbolPlacement = [MGLRuntimeStylingHelper testEnum:MGLSymbolPlacementLine type:@encode(MGLSymbolPlacement)];
|
||||
layer.symbolSpacing = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.symbolAvoidEdges = [MGLRuntimeStylingHelper testBool];
|
||||
layer.iconAllowOverlap = [MGLRuntimeStylingHelper testBool];
|
||||
layer.iconIgnorePlacement = [MGLRuntimeStylingHelper testBool];
|
||||
layer.iconOptional = [MGLRuntimeStylingHelper testBool];
|
||||
layer.iconRotationAlignment = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerIconRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerIconRotationAlignment)];
|
||||
layer.iconRotationAlignment = [MGLRuntimeStylingHelper testEnum:MGLIconRotationAlignmentAuto type:@encode(MGLIconRotationAlignment)];
|
||||
layer.iconSize = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.iconTextFit = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerIconTextFitBoth type:@encode(MGLSymbolStyleLayerIconTextFit)];
|
||||
layer.iconTextFit = [MGLRuntimeStylingHelper testEnum:MGLIconTextFitBoth type:@encode(MGLIconTextFit)];
|
||||
layer.iconTextFitPadding = [MGLRuntimeStylingHelper testPadding];
|
||||
layer.iconImage = [MGLRuntimeStylingHelper testString];
|
||||
layer.iconRotate = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.iconPadding = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.iconKeepUpright = [MGLRuntimeStylingHelper testBool];
|
||||
layer.iconOffset = [MGLRuntimeStylingHelper testOffset];
|
||||
layer.textPitchAlignment = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextPitchAlignmentAuto type:@encode(MGLSymbolStyleLayerTextPitchAlignment)];
|
||||
layer.textRotationAlignment = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerTextRotationAlignment)];
|
||||
layer.textPitchAlignment = [MGLRuntimeStylingHelper testEnum:MGLTextPitchAlignmentAuto type:@encode(MGLTextPitchAlignment)];
|
||||
layer.textRotationAlignment = [MGLRuntimeStylingHelper testEnum:MGLTextRotationAlignmentAuto type:@encode(MGLTextRotationAlignment)];
|
||||
layer.textField = [MGLRuntimeStylingHelper testString];
|
||||
layer.textFont = [MGLRuntimeStylingHelper testFont];
|
||||
layer.textSize = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textMaxWidth = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textLineHeight = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textLetterSpacing = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textJustify = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextJustifyRight type:@encode(MGLSymbolStyleLayerTextJustify)];
|
||||
layer.textAnchor = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextAnchorBottomRight type:@encode(MGLSymbolStyleLayerTextAnchor)];
|
||||
layer.textJustify = [MGLRuntimeStylingHelper testEnum:MGLTextJustifyRight type:@encode(MGLTextJustify)];
|
||||
layer.textAnchor = [MGLRuntimeStylingHelper testEnum:MGLTextAnchorBottomRight type:@encode(MGLTextAnchor)];
|
||||
layer.textMaxAngle = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textRotate = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textPadding = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textKeepUpright = [MGLRuntimeStylingHelper testBool];
|
||||
layer.textTransform = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextTransformLowercase type:@encode(MGLSymbolStyleLayerTextTransform)];
|
||||
layer.textTransform = [MGLRuntimeStylingHelper testEnum:MGLTextTransformLowercase type:@encode(MGLTextTransform)];
|
||||
layer.textOffset = [MGLRuntimeStylingHelper testOffset];
|
||||
layer.textAllowOverlap = [MGLRuntimeStylingHelper testBool];
|
||||
layer.textIgnorePlacement = [MGLRuntimeStylingHelper testBool];
|
||||
@@ -56,47 +56,47 @@
|
||||
layer.iconHaloWidth = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.iconHaloBlur = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.iconTranslate = [MGLRuntimeStylingHelper testOffset];
|
||||
layer.iconTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerIconTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerIconTranslateAnchor)];
|
||||
layer.iconTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLIconTranslateAnchorViewport type:@encode(MGLIconTranslateAnchor)];
|
||||
layer.textOpacity = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textColor = [MGLRuntimeStylingHelper testColor];
|
||||
layer.textHaloColor = [MGLRuntimeStylingHelper testColor];
|
||||
layer.textHaloWidth = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textHaloBlur = [MGLRuntimeStylingHelper testNumber];
|
||||
layer.textTranslate = [MGLRuntimeStylingHelper testOffset];
|
||||
layer.textTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerTextTranslateAnchor)];
|
||||
layer.textTranslateAnchor = [MGLRuntimeStylingHelper testEnum:MGLTextTranslateAnchorViewport type:@encode(MGLTextTranslateAnchor)];
|
||||
|
||||
MGLSymbolStyleLayer *gLayer = (MGLSymbolStyleLayer *)[self.mapView.style layerWithIdentifier:@"layerID"];
|
||||
XCTAssertTrue([gLayer isKindOfClass:[MGLSymbolStyleLayer class]]);
|
||||
XCTAssert([(NSValue *)gLayer.symbolPlacement isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerSymbolPlacementLine type:@encode(MGLSymbolStyleLayerSymbolPlacement)]], @"%@ is not equal to %@", gLayer.symbolPlacement, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerSymbolPlacementLine type:@encode(MGLSymbolStyleLayerSymbolPlacement)]);
|
||||
XCTAssert([(NSValue *)gLayer.symbolPlacement isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolPlacementLine type:@encode(MGLSymbolPlacement)]], @"%@ is not equal to %@", gLayer.symbolPlacement, [MGLRuntimeStylingHelper testEnum:MGLSymbolPlacementLine type:@encode(MGLSymbolPlacement)]);
|
||||
XCTAssertEqualObjects(gLayer.symbolSpacing, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.symbolAvoidEdges, [MGLRuntimeStylingHelper testBool]);
|
||||
XCTAssertEqualObjects(gLayer.iconAllowOverlap, [MGLRuntimeStylingHelper testBool]);
|
||||
XCTAssertEqualObjects(gLayer.iconIgnorePlacement, [MGLRuntimeStylingHelper testBool]);
|
||||
XCTAssertEqualObjects(gLayer.iconOptional, [MGLRuntimeStylingHelper testBool]);
|
||||
XCTAssert([(NSValue *)gLayer.iconRotationAlignment isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerIconRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerIconRotationAlignment)]], @"%@ is not equal to %@", gLayer.iconRotationAlignment, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerIconRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerIconRotationAlignment)]);
|
||||
XCTAssert([(NSValue *)gLayer.iconRotationAlignment isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLIconRotationAlignmentAuto type:@encode(MGLIconRotationAlignment)]], @"%@ is not equal to %@", gLayer.iconRotationAlignment, [MGLRuntimeStylingHelper testEnum:MGLIconRotationAlignmentAuto type:@encode(MGLIconRotationAlignment)]);
|
||||
XCTAssertEqualObjects(gLayer.iconSize, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssert([(NSValue *)gLayer.iconTextFit isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerIconTextFitBoth type:@encode(MGLSymbolStyleLayerIconTextFit)]], @"%@ is not equal to %@", gLayer.iconTextFit, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerIconTextFitBoth type:@encode(MGLSymbolStyleLayerIconTextFit)]);
|
||||
XCTAssert([(NSValue *)gLayer.iconTextFit isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLIconTextFitBoth type:@encode(MGLIconTextFit)]], @"%@ is not equal to %@", gLayer.iconTextFit, [MGLRuntimeStylingHelper testEnum:MGLIconTextFitBoth type:@encode(MGLIconTextFit)]);
|
||||
XCTAssertEqualObjects(gLayer.iconTextFitPadding, [MGLRuntimeStylingHelper testPadding]);
|
||||
XCTAssertEqualObjects(gLayer.iconImage, [MGLRuntimeStylingHelper testString]);
|
||||
XCTAssertEqualObjects(gLayer.iconRotate, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.iconPadding, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.iconKeepUpright, [MGLRuntimeStylingHelper testBool]);
|
||||
XCTAssertEqualObjects(gLayer.iconOffset, [MGLRuntimeStylingHelper testOffset]);
|
||||
XCTAssert([(NSValue *)gLayer.textPitchAlignment isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextPitchAlignmentAuto type:@encode(MGLSymbolStyleLayerTextPitchAlignment)]], @"%@ is not equal to %@", gLayer.textPitchAlignment, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextPitchAlignmentAuto type:@encode(MGLSymbolStyleLayerTextPitchAlignment)]);
|
||||
XCTAssert([(NSValue *)gLayer.textRotationAlignment isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerTextRotationAlignment)]], @"%@ is not equal to %@", gLayer.textRotationAlignment, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerTextRotationAlignment)]);
|
||||
XCTAssert([(NSValue *)gLayer.textPitchAlignment isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLTextPitchAlignmentAuto type:@encode(MGLTextPitchAlignment)]], @"%@ is not equal to %@", gLayer.textPitchAlignment, [MGLRuntimeStylingHelper testEnum:MGLTextPitchAlignmentAuto type:@encode(MGLTextPitchAlignment)]);
|
||||
XCTAssert([(NSValue *)gLayer.textRotationAlignment isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLTextRotationAlignmentAuto type:@encode(MGLTextRotationAlignment)]], @"%@ is not equal to %@", gLayer.textRotationAlignment, [MGLRuntimeStylingHelper testEnum:MGLTextRotationAlignmentAuto type:@encode(MGLTextRotationAlignment)]);
|
||||
XCTAssertEqualObjects(gLayer.textField, [MGLRuntimeStylingHelper testString]);
|
||||
XCTAssertEqualObjects(gLayer.textFont, [MGLRuntimeStylingHelper testFont]);
|
||||
XCTAssertEqualObjects(gLayer.textSize, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.textMaxWidth, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.textLineHeight, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.textLetterSpacing, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssert([(NSValue *)gLayer.textJustify isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextJustifyRight type:@encode(MGLSymbolStyleLayerTextJustify)]], @"%@ is not equal to %@", gLayer.textJustify, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextJustifyRight type:@encode(MGLSymbolStyleLayerTextJustify)]);
|
||||
XCTAssert([(NSValue *)gLayer.textAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextAnchorBottomRight type:@encode(MGLSymbolStyleLayerTextAnchor)]], @"%@ is not equal to %@", gLayer.textAnchor, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextAnchorBottomRight type:@encode(MGLSymbolStyleLayerTextAnchor)]);
|
||||
XCTAssert([(NSValue *)gLayer.textJustify isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLTextJustifyRight type:@encode(MGLTextJustify)]], @"%@ is not equal to %@", gLayer.textJustify, [MGLRuntimeStylingHelper testEnum:MGLTextJustifyRight type:@encode(MGLTextJustify)]);
|
||||
XCTAssert([(NSValue *)gLayer.textAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLTextAnchorBottomRight type:@encode(MGLTextAnchor)]], @"%@ is not equal to %@", gLayer.textAnchor, [MGLRuntimeStylingHelper testEnum:MGLTextAnchorBottomRight type:@encode(MGLTextAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.textMaxAngle, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.textRotate, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.textPadding, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.textKeepUpright, [MGLRuntimeStylingHelper testBool]);
|
||||
XCTAssert([(NSValue *)gLayer.textTransform isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextTransformLowercase type:@encode(MGLSymbolStyleLayerTextTransform)]], @"%@ is not equal to %@", gLayer.textTransform, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextTransformLowercase type:@encode(MGLSymbolStyleLayerTextTransform)]);
|
||||
XCTAssert([(NSValue *)gLayer.textTransform isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLTextTransformLowercase type:@encode(MGLTextTransform)]], @"%@ is not equal to %@", gLayer.textTransform, [MGLRuntimeStylingHelper testEnum:MGLTextTransformLowercase type:@encode(MGLTextTransform)]);
|
||||
XCTAssertEqualObjects(gLayer.textOffset, [MGLRuntimeStylingHelper testOffset]);
|
||||
XCTAssertEqualObjects(gLayer.textAllowOverlap, [MGLRuntimeStylingHelper testBool]);
|
||||
XCTAssertEqualObjects(gLayer.textIgnorePlacement, [MGLRuntimeStylingHelper testBool]);
|
||||
@@ -107,45 +107,45 @@
|
||||
XCTAssertEqualObjects(gLayer.iconHaloWidth, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.iconHaloBlur, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.iconTranslate, [MGLRuntimeStylingHelper testOffset]);
|
||||
XCTAssert([(NSValue *)gLayer.iconTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerIconTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerIconTranslateAnchor)]], @"%@ is not equal to %@", gLayer.iconTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerIconTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerIconTranslateAnchor)]);
|
||||
XCTAssert([(NSValue *)gLayer.iconTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLIconTranslateAnchorViewport type:@encode(MGLIconTranslateAnchor)]], @"%@ is not equal to %@", gLayer.iconTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLIconTranslateAnchorViewport type:@encode(MGLIconTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.textOpacity, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.textColor, [MGLRuntimeStylingHelper testColor]);
|
||||
XCTAssertEqualObjects(gLayer.textHaloColor, [MGLRuntimeStylingHelper testColor]);
|
||||
XCTAssertEqualObjects(gLayer.textHaloWidth, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.textHaloBlur, [MGLRuntimeStylingHelper testNumber]);
|
||||
XCTAssertEqualObjects(gLayer.textTranslate, [MGLRuntimeStylingHelper testOffset]);
|
||||
XCTAssert([(NSValue *)gLayer.textTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerTextTranslateAnchor)]], @"%@ is not equal to %@", gLayer.textTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLSymbolStyleLayerTextTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerTextTranslateAnchor)]);
|
||||
XCTAssert([(NSValue *)gLayer.textTranslateAnchor isEqualToValue:[MGLRuntimeStylingHelper testEnum:MGLTextTranslateAnchorViewport type:@encode(MGLTextTranslateAnchor)]], @"%@ is not equal to %@", gLayer.textTranslateAnchor, [MGLRuntimeStylingHelper testEnum:MGLTextTranslateAnchorViewport type:@encode(MGLTextTranslateAnchor)]);
|
||||
|
||||
layer.symbolPlacement = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerSymbolPlacementLine type:@encode(MGLSymbolStyleLayerSymbolPlacement)];
|
||||
layer.symbolPlacement = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolPlacementLine type:@encode(MGLSymbolPlacement)];
|
||||
layer.symbolSpacing = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.symbolAvoidEdges = [MGLRuntimeStylingHelper testBoolFunction];
|
||||
layer.iconAllowOverlap = [MGLRuntimeStylingHelper testBoolFunction];
|
||||
layer.iconIgnorePlacement = [MGLRuntimeStylingHelper testBoolFunction];
|
||||
layer.iconOptional = [MGLRuntimeStylingHelper testBoolFunction];
|
||||
layer.iconRotationAlignment = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerIconRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerIconRotationAlignment)];
|
||||
layer.iconRotationAlignment = [MGLRuntimeStylingHelper testEnumFunction:MGLIconRotationAlignmentAuto type:@encode(MGLIconRotationAlignment)];
|
||||
layer.iconSize = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.iconTextFit = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerIconTextFitBoth type:@encode(MGLSymbolStyleLayerIconTextFit)];
|
||||
layer.iconTextFit = [MGLRuntimeStylingHelper testEnumFunction:MGLIconTextFitBoth type:@encode(MGLIconTextFit)];
|
||||
layer.iconTextFitPadding = [MGLRuntimeStylingHelper testPaddingFunction];
|
||||
layer.iconImage = [MGLRuntimeStylingHelper testStringFunction];
|
||||
layer.iconRotate = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.iconPadding = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.iconKeepUpright = [MGLRuntimeStylingHelper testBoolFunction];
|
||||
layer.iconOffset = [MGLRuntimeStylingHelper testOffsetFunction];
|
||||
layer.textPitchAlignment = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextPitchAlignmentAuto type:@encode(MGLSymbolStyleLayerTextPitchAlignment)];
|
||||
layer.textRotationAlignment = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerTextRotationAlignment)];
|
||||
layer.textPitchAlignment = [MGLRuntimeStylingHelper testEnumFunction:MGLTextPitchAlignmentAuto type:@encode(MGLTextPitchAlignment)];
|
||||
layer.textRotationAlignment = [MGLRuntimeStylingHelper testEnumFunction:MGLTextRotationAlignmentAuto type:@encode(MGLTextRotationAlignment)];
|
||||
layer.textField = [MGLRuntimeStylingHelper testStringFunction];
|
||||
layer.textFont = [MGLRuntimeStylingHelper testFontFunction];
|
||||
layer.textSize = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textMaxWidth = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textLineHeight = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textLetterSpacing = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textJustify = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextJustifyRight type:@encode(MGLSymbolStyleLayerTextJustify)];
|
||||
layer.textAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextAnchorBottomRight type:@encode(MGLSymbolStyleLayerTextAnchor)];
|
||||
layer.textJustify = [MGLRuntimeStylingHelper testEnumFunction:MGLTextJustifyRight type:@encode(MGLTextJustify)];
|
||||
layer.textAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLTextAnchorBottomRight type:@encode(MGLTextAnchor)];
|
||||
layer.textMaxAngle = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textRotate = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textPadding = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textKeepUpright = [MGLRuntimeStylingHelper testBoolFunction];
|
||||
layer.textTransform = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextTransformLowercase type:@encode(MGLSymbolStyleLayerTextTransform)];
|
||||
layer.textTransform = [MGLRuntimeStylingHelper testEnumFunction:MGLTextTransformLowercase type:@encode(MGLTextTransform)];
|
||||
layer.textOffset = [MGLRuntimeStylingHelper testOffsetFunction];
|
||||
layer.textAllowOverlap = [MGLRuntimeStylingHelper testBoolFunction];
|
||||
layer.textIgnorePlacement = [MGLRuntimeStylingHelper testBoolFunction];
|
||||
@@ -156,45 +156,45 @@
|
||||
layer.iconHaloWidth = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.iconHaloBlur = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.iconTranslate = [MGLRuntimeStylingHelper testOffsetFunction];
|
||||
layer.iconTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerIconTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerIconTranslateAnchor)];
|
||||
layer.iconTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLIconTranslateAnchorViewport type:@encode(MGLIconTranslateAnchor)];
|
||||
layer.textOpacity = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textColor = [MGLRuntimeStylingHelper testColorFunction];
|
||||
layer.textHaloColor = [MGLRuntimeStylingHelper testColorFunction];
|
||||
layer.textHaloWidth = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textHaloBlur = [MGLRuntimeStylingHelper testNumberFunction];
|
||||
layer.textTranslate = [MGLRuntimeStylingHelper testOffsetFunction];
|
||||
layer.textTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerTextTranslateAnchor)];
|
||||
layer.textTranslateAnchor = [MGLRuntimeStylingHelper testEnumFunction:MGLTextTranslateAnchorViewport type:@encode(MGLTextTranslateAnchor)];
|
||||
|
||||
XCTAssertEqualObjects(gLayer.symbolPlacement, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerSymbolPlacementLine type:@encode(MGLSymbolStyleLayerSymbolPlacement)]);
|
||||
XCTAssertEqualObjects(gLayer.symbolPlacement, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolPlacementLine type:@encode(MGLSymbolPlacement)]);
|
||||
XCTAssertEqualObjects(gLayer.symbolSpacing, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.symbolAvoidEdges, [MGLRuntimeStylingHelper testBoolFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconAllowOverlap, [MGLRuntimeStylingHelper testBoolFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconIgnorePlacement, [MGLRuntimeStylingHelper testBoolFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconOptional, [MGLRuntimeStylingHelper testBoolFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconRotationAlignment, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerIconRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerIconRotationAlignment)]);
|
||||
XCTAssertEqualObjects(gLayer.iconRotationAlignment, [MGLRuntimeStylingHelper testEnumFunction:MGLIconRotationAlignmentAuto type:@encode(MGLIconRotationAlignment)]);
|
||||
XCTAssertEqualObjects(gLayer.iconSize, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconTextFit, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerIconTextFitBoth type:@encode(MGLSymbolStyleLayerIconTextFit)]);
|
||||
XCTAssertEqualObjects(gLayer.iconTextFit, [MGLRuntimeStylingHelper testEnumFunction:MGLIconTextFitBoth type:@encode(MGLIconTextFit)]);
|
||||
XCTAssertEqualObjects(gLayer.iconTextFitPadding, [MGLRuntimeStylingHelper testPaddingFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconImage, [MGLRuntimeStylingHelper testStringFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconRotate, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconPadding, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconKeepUpright, [MGLRuntimeStylingHelper testBoolFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconOffset, [MGLRuntimeStylingHelper testOffsetFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textPitchAlignment, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextPitchAlignmentAuto type:@encode(MGLSymbolStyleLayerTextPitchAlignment)]);
|
||||
XCTAssertEqualObjects(gLayer.textRotationAlignment, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextRotationAlignmentAuto type:@encode(MGLSymbolStyleLayerTextRotationAlignment)]);
|
||||
XCTAssertEqualObjects(gLayer.textPitchAlignment, [MGLRuntimeStylingHelper testEnumFunction:MGLTextPitchAlignmentAuto type:@encode(MGLTextPitchAlignment)]);
|
||||
XCTAssertEqualObjects(gLayer.textRotationAlignment, [MGLRuntimeStylingHelper testEnumFunction:MGLTextRotationAlignmentAuto type:@encode(MGLTextRotationAlignment)]);
|
||||
XCTAssertEqualObjects(gLayer.textField, [MGLRuntimeStylingHelper testStringFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textFont, [MGLRuntimeStylingHelper testFontFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textSize, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textMaxWidth, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textLineHeight, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textLetterSpacing, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textJustify, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextJustifyRight type:@encode(MGLSymbolStyleLayerTextJustify)]);
|
||||
XCTAssertEqualObjects(gLayer.textAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextAnchorBottomRight type:@encode(MGLSymbolStyleLayerTextAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.textJustify, [MGLRuntimeStylingHelper testEnumFunction:MGLTextJustifyRight type:@encode(MGLTextJustify)]);
|
||||
XCTAssertEqualObjects(gLayer.textAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLTextAnchorBottomRight type:@encode(MGLTextAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.textMaxAngle, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textRotate, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textPadding, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textKeepUpright, [MGLRuntimeStylingHelper testBoolFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textTransform, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextTransformLowercase type:@encode(MGLSymbolStyleLayerTextTransform)]);
|
||||
XCTAssertEqualObjects(gLayer.textTransform, [MGLRuntimeStylingHelper testEnumFunction:MGLTextTransformLowercase type:@encode(MGLTextTransform)]);
|
||||
XCTAssertEqualObjects(gLayer.textOffset, [MGLRuntimeStylingHelper testOffsetFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textAllowOverlap, [MGLRuntimeStylingHelper testBoolFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textIgnorePlacement, [MGLRuntimeStylingHelper testBoolFunction]);
|
||||
@@ -205,14 +205,14 @@
|
||||
XCTAssertEqualObjects(gLayer.iconHaloWidth, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconHaloBlur, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconTranslate, [MGLRuntimeStylingHelper testOffsetFunction]);
|
||||
XCTAssertEqualObjects(gLayer.iconTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerIconTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerIconTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.iconTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLIconTranslateAnchorViewport type:@encode(MGLIconTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.textOpacity, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textColor, [MGLRuntimeStylingHelper testColorFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textHaloColor, [MGLRuntimeStylingHelper testColorFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textHaloWidth, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textHaloBlur, [MGLRuntimeStylingHelper testNumberFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textTranslate, [MGLRuntimeStylingHelper testOffsetFunction]);
|
||||
XCTAssertEqualObjects(gLayer.textTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLSymbolStyleLayerTextTranslateAnchorViewport type:@encode(MGLSymbolStyleLayerTextTranslateAnchor)]);
|
||||
XCTAssertEqualObjects(gLayer.textTranslateAnchor, [MGLRuntimeStylingHelper testEnumFunction:MGLTextTranslateAnchorViewport type:@encode(MGLTextTranslateAnchor)]);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user