Skip to content

Heading

Last checked ·

Heading says which way a view faces. Sources use five words for it and one of them turns the other way. This page compares how standards, SDKs and shared links define it.

What the comparison shows

The surveyed heading and bearing APIs, and the panorama azimuth links, measure direction clockwise from north. Check the reference frame when importing yaw.

Rotation is different. In ArcGIS MapView, OpenLayers and Apple MapKit JS it turns the map, so rotation 90 puts west at the top where heading 90 puts east there.

5 words heading, bearing, rotation, yaw and azimuth for one direction
Clockwise from north the shared heading convention
(−rotation) mod 360° turns a rotation into a heading

The picture

Three panels. A compass seen from above with the Wildspitz camera facing 160.4 degrees clockwise from north. A map frame for heading 90, where east is at the top and north points left. A map frame for rotation 90, where west is at the top and north points right.
Angles are schematic. Excalidraw source

One camera, many links

The tilted Wildspitz camera faces 160.365°. Every link writes about 160. The differences come from rounding, the north reference and the local frame used for the angles. Google Earth and Apple Maps were sent the radial focus angles.

The direction of the same camera in each link from the viewer comparison
LinkDirectionWord and convention
Shared view160.4hHeading, clockwise from true north.
ArcGIS Scene Viewer160.3651335Heading.
map.geo.admin.ch, 3D160.3651335Heading.
Google Earth address160.389904hHeading from the radial frame at the focus, as supplied in the link.
Apple Mapsheading=160.3899Heading from the same radial focus inputs, rounded to four decimals.
BEYOND160Heading from the north of the Swiss grid, in whole degrees.
Mapy.com, 3Dyaw=160Yaw.
PeakVisoryaw=160.4Yaw.
PeakFinderazi=160.4Azimuth.
OpenSkiMap, thermal.kk7, PowderGuide160.4, 160, b=160.4Bearing.

Viewer comparisons · Outdoor app inventory

What the SDKs and standards say

The word and its meaning in each source
SourceWordWhat it saysEast at the top isLink
OGC KMLheading“Direction (azimuth) of the camera, in degrees. Default=0 (true North).” Values run from 0 to 360.90KML reference
ArcGIS Camera, 3Dheading“Heading is zero when north is the top of the screen. It increases as the view rotates clockwise.”90Camera
Google Maps JavaScript, 2D and 3Dheading“Measured clockwise from cardinal direction North.” In 3D, “the compass heading of the map, in degrees, where due north is zero”.90Map · 3D map
CesiumJSheadingIn radians. The example sets 90° for “east” and notes the “default value is 0.0 (north)”.π/2Camera
Mapbox GL JS, MapLibre GL JSbearing“The bearing is the compass direction that is "up". For example, bearing: 90 orients the map so that east is up.”90Mapbox camera options · MapLibre camera options
deck.glbearing“Bearing angle in degrees. Default 0 (north).”90MapView
ArcGIS MapView, 2Drotation“The clockwise rotation of due north in relation to the top of the view in degrees.” North moves, so the top of the view turns the other way.270MapView
Apple MapKit JSrotation“The value 90 means the top of the map is pointing due west.”270Rotation
OpenLayersrotation“In radians (positive rotation clockwise, 0 means North).” The map turns clockwise.3π/2View
LeafletnoneCore Leaflet keeps north at the top.—Scale and heading in the SDKs

For the three rotation APIs, convert radians to degrees where needed, then take heading = (−rotation) mod 360° in [0°, 360°). The rows follow each source's wording. An adapter should confirm the sign by reading the view back.

Which north

The three norths a heading can be measured from
NorthWho uses itWhat it means for a link
True northKML says “true North”. The shared view format uses it.The same everywhere and over time.
Grid northBEYOND measures from the north of the Swiss grid.It differs slightly from true north. An adapter converts it.
Magnetic northA hand compass.It differs from true north and drifts over the years. We have not measured by how much. No surveyed link uses it.

Which word

Who uses which word
WordSDKs and standardsLinksNote
headingKML, ArcGIS Camera, Google Maps 2D and 3D, CesiumJSApple Maps heading=, Google Earth h, map.geo.admin.ch, BEYONDUsed for flat maps and for cameras.
bearingMapbox GL JS, MapLibre GL JS, deck.glOpenSkiMap, Strava and thermal.kk7 hashes, PowderGuide b=Used for flat and tilted views in one family of renderers.
rotationArcGIS MapView, OpenLayers, Apple MapKit JS—Turns the other way.
yawGeoPose Basic-YPRMapy.com, PeakVisorMeaning depends on the reference frame.
azimuthKML uses it to explain headingPeakFinder azi=Common for panoramas.

Heading and bearing mean the same thing in these sources. Google Maps and the Mapbox family each use one word for both the flat map and the tilted view.

GeoPose Basic-YPR defines yaw as a rotation about the up axis of an east–north–up reference frame. Convert the full orientation to the camera's forward and image-up vectors before extracting shared angles. OGC GeoPose Basic-YPR

What this means for shared view links

A shared view writes its direction as heading h, in degrees clockwise from true north, from 0 up to 360. The same letter serves a flat map and a camera. Camera fields · Naming decision

It is the compass direction at the top of the view when roll is zero. A flat map has no roll, so its heading is the direction at the top of the screen. A camera's heading is the direction it faces.

An adapter for a rotation API negates the rotation in degrees and wraps it into [0°, 360°). OpenLayers supplies radians. An adapter for a viewer on a national grid converts from grid north.