This renderer is a type of UniqueValue renderer which is based off the valueExpression property rather than field. Optionally, size and/or transparency visual variables may be included with valueExpression. Note that this renderer is supported for ArcGIS Online hosted feature services and feature collections.

See https://developers.arcgis.com/web-map-specification/objects/predominance_renderer/.

interface PredominanceRendererJson {
    authoringInfo?: AuthoringInfoJson;
    backgroundFillSymbol: SimpleFillSymbolJson;
    defaultLabel?: string;
    defaultSymbol?: Symbol2DJson;
    rotationExpression?: string;
    rotationType?: RotationJsonType;
    type: "predominance";
    uniqueValueInfos: UniqueValueInfoJson[];
    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.

backgroundFillSymbol: SimpleFillSymbolJson

A simple fill symbol that is only for polygon features.

defaultLabel?: string

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

defaultSymbol?: Symbol2DJson

Symbol used when a value cannot be classified.

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.

type

The type of renderer. See RendererJsonType.

uniqueValueInfos: UniqueValueInfoJson[]

Array of objects with value, label, description and symbol.

visualVariables?: VisualVariableJson[]

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