Skip to content

Bearing Indicator

The Bearing Indicator is a small symbol, 48 px across, that shows a bearing: the vessel is an arrow in the middle, pointing up, and a dot on the ring with a line to the centre marks the direction of the target. It is found in the Maritime - OpenBridge section of the Perspective Component Palette as Bearing Indicator.

Bearing Indicator showing a bearing of 40°

It is one of the indicators of the maritime instruments: it has no scale, state or priority. See Instruments and Indicators.

A Bearing Indicator dropped from the palette shows a bearing of 0°, dead ahead:

Bearing Indicator with default properties

Bind bearingDeg to the bearing in degrees, clockwise from the bow. The vessel arrow always points up, so use a bearing relative to the heading; for a true bearing, subtract the heading first.

0 40 90 225
Bearing 0° Bearing 40° Bearing 90° Bearing 225°
Name Description Property Type
bearingDeg Bearing in degrees, clockwise. Default 0. value

The symbol is always 48 × 48 px and sits at the top left of the component’s box; it does not grow with the box. A new component is 48 × 53. The blue frame is the component’s box:

Bearing Indicator in a large box


Properties not covered in the sections above:

Name Description Property Type
style Standard Perspective style object. object

The Bearing Indicator has no component events of its own.

Example 1 — Bearing to the Next Waypoint

Section titled “Example 1 — Bearing to the Next Waypoint”
  1. Drop a Bearing Indicator next to a readout of the distance to the next waypoint.
  2. Bind bearingDeg to the bearing relative to the bow, for example ({[default]Route/BearingToWpt} - {[default]Nav/Heading} + 360) % 360.

Built on the OpenBridge Design System