This is a special version of UniqueValue Renderer, which loads uniqueValue infos from a portal style.

See https://developers.arcgis.com/web-scene-specification/objects/uniqueValueFromStyleRenderer/.

interface UniqueValueFromStyleRendererJson {
    authoringInfo?: AuthoringInfoJson;
    defaultLabel?: string;
    defaultSymbol?: Symbol3DJson;
    field1: string;
    rotationExpression?: string;
    rotationType?: RotationJsonType;
    styleName?: string;
    styleUrl?: string;
    type: "uniqueValue";
    visualVariables?: VisualVariableJson[];
}

Hierarchy (view full)

Properties

authoringInfo?: AuthoringInfoJson

An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients should ignore it.

defaultLabel?: string

Default string for the default symbol used to draw unspecified values.

defaultSymbol?: Symbol3DJson

The defaultSymbol on the renderer that get assigned to features with no value or features that do not fall within the configured data.

field1: string

String value specifying the first field used to render matching values.

rotationExpression?: string

A constant value or an expression that derives the angle of rotation based on a feature attribute value. When an attribute name is specified, it's enclosed in square brackets.

rotationType?: RotationJsonType

String value (either geographic or arithmetic) which controls the origin and direction of rotation on point features. If the rotationType is defined as 'arithmetic', the symbol is rotated from East in a counter-clockwise direction where East is the 0� axis. If the rotationType is defined as 'geographic', the symbol is rotated from North in a clockwise direction where North is the 0� axis.

styleName?: string

A registered web style name. Can not be used in conjunction with styleName.

styleUrl?: string

URL that points to the web style definition. Can not be used in conjunction with styleUrl.

type

The type of renderer. See RendererJsonType.

visualVariables?: VisualVariableJson[]

An array of visualVariable objects used for continuous color or size, simple, and unique values with feature opacity.