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.
The picture
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.
| Link | Direction | Word and convention |
|---|---|---|
| Shared view | 160.4h | Heading, clockwise from true north. |
| ArcGIS Scene Viewer | 160.3651335 | Heading. |
| map.geo.admin.ch, 3D | 160.3651335 | Heading. |
| Google Earth address | 160.389904h | Heading from the radial frame at the focus, as supplied in the link. |
| Apple Maps | heading=160.3899 | Heading from the same radial focus inputs, rounded to four decimals. |
| BEYOND | 160 | Heading from the north of the Swiss grid, in whole degrees. |
| Mapy.com, 3D | yaw=160 | Yaw. |
| PeakVisor | yaw=160.4 | Yaw. |
| PeakFinder | azi=160.4 | Azimuth. |
| OpenSkiMap, thermal.kk7, PowderGuide | 160.4, 160, b=160.4 | Bearing. |
What the SDKs and standards say
| Source | Word | What it says | East at the top is | Link |
|---|---|---|---|---|
| OGC KML | heading | “Direction (azimuth) of the camera, in degrees. Default=0 (true North).” Values run from 0 to 360. | 90 | KML reference |
| ArcGIS Camera, 3D | heading | “Heading is zero when north is the top of the screen. It increases as the view rotates clockwise.” | 90 | Camera |
| Google Maps JavaScript, 2D and 3D | heading | “Measured clockwise from cardinal direction North.” In 3D, “the compass heading of the map, in degrees, where due north is zero”. | 90 | Map · 3D map |
| CesiumJS | heading | In radians. The example sets 90° for “east” and notes the “default value is 0.0 (north)”. | π/2 | Camera |
| Mapbox GL JS, MapLibre GL JS | bearing | “The bearing is the compass direction that is "up". For example, bearing: 90 orients the map so that east is up.” | 90 | Mapbox camera options · MapLibre camera options |
| deck.gl | bearing | “Bearing angle in degrees. Default 0 (north).” | 90 | MapView |
| ArcGIS MapView, 2D | rotation | “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. | 270 | MapView |
| Apple MapKit JS | rotation | “The value 90 means the top of the map is pointing due west.” | 270 | Rotation |
| OpenLayers | rotation | “In radians (positive rotation clockwise, 0 means North).” The map turns clockwise. | 3π/2 | View |
| Leaflet | none | Core 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
| North | Who uses it | What it means for a link |
|---|---|---|
| True north | KML says “true North”. The shared view format uses it. | The same everywhere and over time. |
| Grid north | BEYOND measures from the north of the Swiss grid. | It differs slightly from true north. An adapter converts it. |
| Magnetic north | A 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
| Word | SDKs and standards | Links | Note |
|---|---|---|---|
| heading | KML, ArcGIS Camera, Google Maps 2D and 3D, CesiumJS | Apple Maps heading=, Google Earth h, map.geo.admin.ch, BEYOND | Used for flat maps and for cameras. |
| bearing | Mapbox GL JS, MapLibre GL JS, deck.gl | OpenSkiMap, Strava and thermal.kk7 hashes, PowderGuide b= | Used for flat and tilted views in one family of renderers. |
| rotation | ArcGIS MapView, OpenLayers, Apple MapKit JS | — | Turns the other way. |
| yaw | GeoPose Basic-YPR | Mapy.com, PeakVisor | Meaning depends on the reference frame. |
| azimuth | KML uses it to explain heading | PeakFinder 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.
