TransparencyInfo is supported by opacityInfo in the JavaScript API. Except type and axis, all properties follow the syntax of the JavaScript API's opacityInfo property. It applies transparency to each feature based on the attribute values in a field. The exception is that the webmap JSON uses transparency (range 0 - 100, with 100 as completely transparent) instead of opacity (range 0 - 1, with 0 as completely transparent).

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

interface TransparencyInfoJson {
    field: string;
    legendOptions?: {
        showLegend?: boolean;
        title?: string;
    };
    normalizationField?: string;
    stops?: TransparencyStopJson[];
    type: "transparencyInfo";
}

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;
}

Options available for the legend.

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.

An array of transparencyStop objects.

type

The type of the VisualVariable.