---
title: webkitCompassHeading
framework: webkitjs
role: pseudoSymbol
path: webkitjs/deviceorientationevent/1804777-webkitcompassheading
---

# webkitCompassHeading

A direction that is measured in degrees relative to magnetic north.

## Declaration

```data
readonly attribute double webkitCompassHeading
```

## Overview

Overview Direction values are measured in degrees starting at due north and continuing clockwise around the compass.  Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on. A negative value indicates an invalid direction.

## See Also

### Getting Compass Properties

- [webkitCompassAccuracy](webkitjs/deviceorientationevent/1804769-webkitcompassaccuracy.md)
