Vector Field Renderer

A vector field renderer is a renderer that uses symbolizes a U-V or Magnitude-Direction data.

Properties

Property Details
attributeField Name of the feature attribute field that contains the data value.
flowRepresentation Sets the flow direction of the data.
If property is present, must be one of the following values:
  • flow_from
  • flow_to
rotationType String value which controls the origin and direction of rotation on point features. If the rotationType is defined as arithmetic, the symbol is rotated from East in a counter-clockwise direction where East is the 0 degree axis. If the rotationType is defined as geographic, the symbol is rotated from North in a clockwise direction where North is the 0 degree axis.
If property is present, must be one of the following values:
  • arithmetic
  • geographic
style A predefined style.
If property is present, must be one of the following values:
  • wind_speed
  • single_arrow
  • classified_arrow
  • beaufort_kn
  • beaufort_m
  • beaufort_mi
  • beaufort_ft
  • beaufort_km
  • ocean_current_m
  • ocean_current_kn
  • simple_scalar
type Specifies the type of renderer used.
Value of this property must be vectorField
visualVariables An array of objects used to set rendering properties.

Example

Live sample web map showing VectorFieldRenderer renderer.

{
  "renderer": {
    "rotationType": "geographic",
    "visualVariables": [
      {
        "type": "sizeInfo",
        "minSize": 5.625,
        "maxSize": 22.5,
        "minDataValue": 0.041,
        "maxDataValue": 31.938,
        "field": "Magnitude"
      }
    ],
    "type": "vectorField",
    "style": "beaufort_kn",
    "attributeField": "Magnitude",
    "flowRepresentation": "flow_from"
  }
}

Feedback on this topic?