Contents

webkitCompassHeading

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

Declaration

readonly attribute double webkitCompassHeading

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