Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

GISMapApp

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.

color (Color)

Defines color to use when the variable is equal to stop value (Color array in [R,G,B,A] format. [number, number, number, number]).

value (Number)

Defines value at which the specified color is used.

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.

size (Number)

Defines the size in points to use when the variable is equal to stop value.

value (Number)

Defines value at which the specified size is used.

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.

transparency (Number)

Defines transparency to use when the variable is equal to stop value.

value (Number)

Defines value at which the specified transparency is used.

type

transparencyInfo

A type of Visual variable.

Related Links
TitleResults for “How to create a CRG?”Also Available in