VisualVariable
- Last UpdatedApr 23, 2024
- 2 minute read
Object used to set marker properties depending on a feature field attribute value. There are four types of Visual Variables: ColorInfo, RotationInfo, SizeInfo,and TransparencyInfo.
The following table provides the specific configurable options available for ColorInfo:
|
Property |
Type |
Description |
||
|---|---|---|---|---|
|
field |
string |
Attribute field used for color rendering. You can also use the string {resolution} to use the map view resolution instead of a feature field attribute. |
||
|
stops |
ColorStop[] |
Describes color ramp to use. ColorStop: Describes a color ramp step. Below are the configurable options.
|
||
|
type |
colorInfo |
A type of Visual variable. |
The following table provides the specific configurable options available for RotationInfo:
|
Property |
Type |
Description |
|---|---|---|
|
field |
string |
Defines attribute field used for setting the rotation of a symbol. |
|
rotationType [optional] |
rotationType |
Defines the origin and direction of rotation. Values: "arithmetic" | "geographic" |
|
type |
rotationInfo |
A type of Visual variable. |
The sizeInfo visual variable defines how size is applied to features based on the values of a numeric field attribute. It can be configured with SizeInfoMinMax or SizeInfoStops.
The following table provides the specific configurable options available for SizeInfo.SizeInfoMinMax:
|
Property |
Type |
Description |
|---|---|---|
|
maxDataValue |
number |
Defines the maximum data value. |
|
maxSize |
number |
Specifies the largest marker size in points to use. |
|
minDataValue |
number |
Defines the minimum data value. |
|
minSize |
number |
Specifies the smallest marker size in points to use. |
The following table provides the specific configurable options available for SizeInfo.SizeInfoStops:
|
Property |
Type |
Description |
||
|---|---|---|---|---|
|
stops |
SizeStop[] |
Specifies a ramp with arbitrary steps specifying each stop value and size. SizeStop: Describes a size ramp step. Below are the configurable options.
|
The following table provides the specific configurable options available for TransparencyInfo.
|
Property |
Type |
Description |
||
|---|---|---|---|---|
|
field |
string |
Defines attribute field used for transparency rendering. You can also use the string {resolution} to use the map view resolution instead of a feature field attribute. |
||
|
stops |
TransparencyStop[] |
Defines transparency ramp to use. TransparencyStop: Describes a transparency ramp step. Below are the configurable options.
|
||
|
type |
transparencyInfo |
A type of Visual variable. |