Skip to content

Wind Indicator

The Wind Indicator is a small symbol that shows where the wind comes from and how strong it is, with a wind barb on a round frame. It is found in the Maritime - OpenBridge section of the Perspective Component Palette as Wind Indicator.

Wind Indicator: 20 knots from 300°

It is the indicator form of the Wind instrument: it has no dial, histogram or vessel, and is meant for places where the wind is one of many things shown. See Instruments and Indicators.

A Wind Indicator dropped from the palette shows calm, a circle:

Wind Indicator with default properties

The barb sits on the side the wind comes from and points with the wind. The small triangle at the top of the frame marks north.

0 90 180 270
Wind from north Wind from east Wind from south Wind from west

The direction the wind comes from, in degrees (0 is north), is given by currentWindFromDirection, for example bound to [default]Weather/TrueWindDirection. windFromAngle and angle are older names of the same property. Views that use them keep working: when one is not 0, it replaces currentWindFromDirection. Use currentWindFromDirection in new views.

Name Description Property Type
currentWindFromDirection Direction the wind comes from, in degrees; 0 is north. Default 0. value
windFromAngle Deprecated name of currentWindFromDirection. When not 0, replaces it. Default 0. value
angle Deprecated name of currentWindFromDirection. When not 0, replaces it. Default 0. value

currentWindSpeedKnots is the wind speed in knots. It is shown with the barbs of a weather chart: a short barb is 5 knots, a long barb 10 knots and a flag 50 knots. The speed is rounded to the nearest symbol: calm (0), a bare arrow (1), then steps of 5 knots (arrow and labeled have fewer steps above 35 knots). Anything above the strongest symbol, 100 knots, shows that symbol.

Knots arrow shaft
0 Calm, arrow Calm, shaft
1 1 knot, arrow 1 knot, shaft
5 5 knots, arrow 5 knots, shaft
10 10 knots, arrow 10 knots, shaft
25 25 knots, arrow 25 knots, shaft
50 50 knots, arrow 50 knots, shaft
100 100 knots, arrow 100 knots, shaft
Name Description Property Type
currentWindSpeedKnots Wind speed in knots. Default 0 (calm). value

type selects the symbol, and direction whether it is drawn north up or turned with the vessel. The images show 20 knots from 300°, with rotationAngle 40:

type direction = true (default) direction = relative
arrow Arrow, true Arrow, relative
shaft Shaft, true Shaft, relative
labeled Labeled, true Labeled, relative
  • arrow (default) — a wind barb with an arrow head.
  • shaft — a thinner barb on a shaft from the centre, with finer speed steps.
  • labeled — the speed as a number in the centre of a dial with tickmarks, and a pointer to the direction the wind comes from. direction and rotationAngle have no effect on it.

With direction set to relative, the north marker and the wind are turned clockwise by rotationAngle, in degrees. With true the symbol is always north up and rotationAngle is not used.

Note: The upstream description of rotationAngle says it “could be the heading or the course of the vessel”. As measured, a positive value turns the picture clockwise, so the north marker ends up at rotationAngle degrees. For a picture with the bow up, bind rotationAngle to the heading with its sign reversed, for example the expression -{[default]Navigation/Heading}. This has not been checked against the OpenBridge design.

Name Description Property Type
type arrow, shaft or labeled. Default arrow. value
direction true (north up) or relative (turned by rotationAngle). Default true. value
rotationAngle Turn of the picture in degrees, with relative. Default 0. value

enhanced draws the barb in the enhanced colour. See Priority.

regular (default) enhanced
Regular priority Enhanced priority
Name Description Property Type
priority regular or enhanced. Default regular. value

The Wind Indicator has a fixed size of 48 × 48 px, drawn at the top left of the component’s box. A larger box does not make it larger. The blue frame is the component’s box:

Wind Indicator in a larger box

Make the component 48 × 48 px so its box and the symbol match; a new component is 48 × 53 px.


Properties not covered in the sections above:

Name Description Property Type
style Standard Perspective style object. object

The Wind Indicator has no component events of its own.

  1. Drop a Wind Indicator into the view and make it 48 × 48 px.
  2. Bind currentWindFromDirection to [default]Weather/TrueWindDirection.
  3. Bind currentWindSpeedKnots to [default]Weather/TrueWindSpeed.
  4. To show the speed as a number, set type to labeled.

Built on the OpenBridge Design System