The rotation visual variable defines how features rendered with marker symbols are rotated. The rotation value is determined by mapping the values to data in a field, or by other arithmetic means with a function.

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

interface RotationInfoJson {
    field: string;
    legendOptions?: {
        showLegend?: boolean;
        title?: string;
    };
    normalizationField?: string;
    rotationType?: RotationJsonType;
    type: "rotationInfo";
    valueExpression?: string;
}

Hierarchy (view full)

Properties

field: string

A string value indicating the name of the feature attribute field that contains the data value to render.

legendOptions?: {
    showLegend?: boolean;
    title?: string;
}

Type declaration

  • OptionalshowLegend?: boolean

    Indicates whether to show color/size ramp in the legend.

  • Optionaltitle?: string

    The title of the legend.

normalizationField?: string

String value indicating the name of the attribute field used to normalize the data.

rotationType?: RotationJsonType

Defines the origin and direction of rotation depending on how the angle of rotation was measured. Possible values are geographic which rotates the symbol from the north in a clockwise direction and arithmetic which rotates the symbol from the east in a counter-clockwise direction.

Must be one of the following values: geographic, arithmetic.

type

The type of the VisualVariable.

valueExpression?: string

An Arcade expression that computes a value in lieu of a value provided by an attribute field.