ArcGIS Runtime SDK for iOS
100.15
|
A simple renderer based on a single symbol.
Instances of this class represent simple renderers. Renderers symbolize all graphics in a graphics layer or features in a feature layer according to a given scheme. This is easier than symbolizing each graphic individually.
Simple renderers use a simple scheme - the same symbol is used for all graphics and features.
Instance Methods | |
(instancetype) | - initWithSymbol: |
(BOOL) | - isEqualToRenderer: |
(AGSSymbol *) | - symbolForFeature: |
(AGSSymbol *) | - symbolForFeature:applyAttributeOverrides: |
(AGSSymbol *) | - symbolForGraphic: |
(AGSSymbol *) | - symbolForGraphic:applyAttributeOverrides: |
(nullable id) | - toJSON: |
Class Methods | |
(nullable id< AGSJSONSerializable >) | + fromJSON:error: |
(instancetype) | + simpleRenderer |
(instancetype) | + simpleRendererWithSymbol: |
Properties | |
NSString * | label |
NSString * | rendererDescription |
NSString * | rotationExpression |
AGSRotationType | rotationType |
AGSRendererSceneProperties * | sceneProperties |
AGSSymbol * | symbol |
NSDictionary< NSString *, id > * | unknownJSON |
NSDictionary< NSString *, id > * | unsupportedJSON |
|
staticrequiredinherited |
Initializes and returns an object from its JSON representation.
JSONObject | NSDictionary or NSArray containing the JSON. |
error | encountered during the operation, if any. |
- (instancetype) initWithSymbol: | (nullable AGSSymbol *) | symbol |
Initialize renderer with desired symbol.
symbol | The symbol to be used to render all graphics. |
- (BOOL) isEqualToRenderer: | (AGSRenderer *) | other |
Compares two renderers for equality.
other | renderer to compare this one to. |
YES
if other
is equal to self
, otherwise NO
. + (instancetype) simpleRenderer |
Initialize renderer without any symbol.
+ (instancetype) simpleRendererWithSymbol: | (nullable AGSSymbol *) | symbol |
Initialize renderer with desired symbol.
symbol | The symbol to be used to render all graphics. |
- (AGSSymbol*) symbolForFeature: | (AGSFeature *) | feature |
Creates a symbol for the feature based on the scheme used by this renderer.
feature | The feature to determine the symbol for. |
feature
. - (AGSSymbol*) symbolForFeature: | (AGSFeature *) | feature | |
applyAttributeOverrides: | (BOOL) | applyAttributeOverrides | |
Creates a symbol for the feature based on the scheme used by this renderer and optionally apply attribute overrides.
If applyAttributeOverrides
is set to YES
and renderer contains an override expression, this method will return a symbol modified by the expression. If the expression cannot be properly evaluated due to missing fields or external data, then the original symbol is returned.
feature | The feature to determine the symbol for. |
applyAttributeOverrides | If set YES , applies the override attributes from the renderer. |
feature
. - (AGSSymbol*) symbolForGraphic: | (AGSGraphic *) | graphic |
Creates a symbol for the graphic based on the scheme used by this renderer.
graphic | The graphic to determine the symbol for. |
graphic
. - (AGSSymbol*) symbolForGraphic: | (AGSGraphic *) | graphic | |
applyAttributeOverrides: | (BOOL) | applyAttributeOverrides | |
Creates a symbol for the graphic based on the scheme used by this renderer and optionally apply attribute overrides.
graphic | The graphic to determine the symbol for. |
applyAttributeOverrides | If set YES , applies the override attributes from the renderer. |
graphic
.
|
requiredinherited |
Returns JSON representation for this object.
error | encountered during the operation, if any. |
NSDictionary
or NSArray
containing the JSON. Reimplemented in AGSPortalItem.
|
readwritenonatomiccopy |
The label for the renderer.
|
readwritenonatomiccopy |
The description for the renderer
|
readwritenonatomiccopyinherited |
Constant value or an expression that specifies the angle of rotation based on a feature's attribute value. When an attribute name is specified in rotationExpression, it's enclosed in square brackets, for example, [Rotation].
|
readwritenonatomicassigninherited |
Controls the origin and direction of rotation. If the rotationType
is defined as AGSRotationTypeTypeArithmetic
, the symbol is rotated from East in a counter-clockwise direction where East is the 0° axis. If the rotationType is defined as AGSRotationTypeGeographic
, the symbol is rotated from North in a clockwise direction where North is the 0° axis.
|
readwritenonatomicstronginherited |
Properties to apply only when rendering data in 3D scenes using AGSSceneView
.
|
readwritenonatomicstrong |
The symbol for the renderer.
|
readrequirednonatomiccopyinherited |
A dictionary of values that was in the source JSON but was unparsed by API.
NSDictionary
containing the unknown JSON.
|
readnonatomiccopyinherited |
A dictionary of values that are supported by the REST API, but not exposed through the SDK API.
NSDictionary
containing the unsupported JSON.