Skip To Content ArcGIS for Developers Sign In Dashboard

Web Scene Specification

TransparencyInfo Visual Variable

The transparencyInfo visual variable defines the transparency, or opacity, of each feature's symbol based on a numeric attribute field value.

Referenced by: visualVariable

Properties

Property Details
field Attribute field used for setting the transparency of a feature if no valueExpression is provided.
legendOptions Options available for the legend for visual variables.
See legendOptions properties table.
normalizationField Attribute field used to normalize the data.
stops An array of transparencyStop objects.
type Specifies the type of visual variable.
Value of this property must be transparencyInfo
valueExpression An Arcade expression evaluating to a number.
valueExpressionTitle The title identifying and describing the associated Arcade expression as defined in the valueExpression property.

legendOptions properties

Property Details
showLegend Indicates whether to show the color/size/opacity ramp in the legend.
title The title of the legend.

Example

Live sample web scene showing use of the transparencyInfo visual variable.

{
  "visualVariables": [
    {
      "type": "transparencyInfo",
      "field": "strength",
      "stops": [
        {
          "value": 21,
          "transparency": 60
        },
        {
          "value": 39,
          "transparency": 10
        }
      ]
    }
  ]
}

Feedback on this topic?