ArcGIS Runtime SDK for iOS: AGSLabelAngle Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSLabelAngle Class Reference

Description

Specifies how to calculate the angular position and layout direction for labels on or around point feature symbols. The angular position may be different for each feature (driven by one or more feature attributes) or constant for all features (specified by a fixed number).

Since
100.11
Inheritance diagram for AGSLabelAngle:
AGSObject <AGSJSONSerializable>

Instance Methods

(instancetype) - initWithArcadeExpression:
 
(instancetype) - initWithArcadeExpression:rotationType:
 
(nullable id) - toJSON:
 

Class Methods

(nullable id< AGSJSONSerializable >) + fromJSON:error:
 
(instancetype) + labelAngleWithArcadeExpression:
 
(instancetype) + labelAngleWithArcadeExpression:rotationType:
 

Properties

AGSArcadeExpressionangleExpression
 
AGSLabelAngleRotationType rotationType
 
NSDictionary< NSString *, id > * unknownJSON
 
NSDictionary< NSString *, id > * unsupportedJSON
 

Method Documentation

◆ fromJSON:error:

+ (nullable id<AGSJSONSerializable>) fromJSON: (id)  JSONObject
error: (NSError **)  error 
staticrequiredinherited

Initializes and returns an object from its JSON representation.

Parameters
JSONObjectNSDictionary or NSArray containing the JSON.
errorencountered during the operation, if any.
Since
100

◆ initWithArcadeExpression:

- (instancetype) initWithArcadeExpression: (AGSArcadeExpression *)  arcadeExpression

Creates an AGSLabelAngle object with the specified AGSArcadeExpression object . The AGSLabelAngle::rotationType property will be defaulted to AGSLabelAngleRotationTypeAutomatic.

Parameters
arcadeExpressionThe arcade expression script.
Since
100.11

◆ initWithArcadeExpression:rotationType:

- (instancetype) initWithArcadeExpression: (AGSArcadeExpression *)  arcadeExpression
rotationType: (AGSLabelAngleRotationType rotationType 

Creates an AGSLabelAngle object with the specified AGSArcadeExpression and AGSLabelAngleRotationType.

Parameters
arcadeExpressionThe arcade expression script.
rotationTypeWhether the angle should be interpreted as arithmetic or geographic.
Since
100.11

◆ labelAngleWithArcadeExpression:

+ (instancetype) labelAngleWithArcadeExpression: (AGSArcadeExpression *)  arcadeExpression

Creates an AGSLabelAngle object with the specified AGSArcadeExpression object. The AGSLabelAngle::rotationType will be defaulted to AGSLabelAngleRotationTypeAutomatic.

Parameters
arcadeExpressionThe arcade expression script.
Since
100.11

◆ labelAngleWithArcadeExpression:rotationType:

+ (instancetype) labelAngleWithArcadeExpression: (AGSArcadeExpression *)  arcadeExpression
rotationType: (AGSLabelAngleRotationType rotationType 

Creates an AGSLabelAngle object with the specified AGSArcadeExpression and AGSLabelAngleRotationType.

Parameters
arcadeExpressionThe arcade expression script.
rotationTypeWhether the angle should be interpreted as arithmetic or geographic.
Since
100.11

◆ toJSON:

- (nullable id) toJSON: (NSError **)  error
requiredinherited

Returns JSON representation for this object.

Parameters
errorencountered during the operation, if any.
Returns
NSDictionary or NSArray containing the JSON.
Since
100

Reimplemented in AGSPortalItem.

Property Documentation

◆ angleExpression

- (AGSArcadeExpression*) angleExpression
readwritenonatomicstrong

Specifies how the angle (in degrees) is calculated from the feature attributes, using an arcade expression. The calculation may use attributes, fixed numbers, or a combination of both. The default value is an AGSArcadeExpression property containing an empty expression string, which will produce a zero angle when evaluated.

Since
100.11

◆ rotationType

- (AGSLabelAngleRotationType) rotationType
readwritenonatomicassign

Whether the angle should be interpreted as arithmetic or geographic. The default value is AGSLabelAngleRotationTypeAutomatic (which will be interpreted as AGSLabelAngleRotationTypeArithmetic).

Since
100.11

◆ unknownJSON

- (NSDictionary<NSString*,id>*) unknownJSON
readrequirednonatomiccopyinherited

A dictionary of values that was in the source JSON but was unparsed by API.

Returns
NSDictionary containing the unknown JSON.
Since
100

◆ unsupportedJSON

- (NSDictionary<NSString*,id>*) unsupportedJSON
readnonatomiccopyinherited

A dictionary of values that are supported by the REST API, but not exposed through the SDK API.

Returns
NSDictionary containing the unsupported JSON.
Since
100