GeolocationCoordinates: heading 속성
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
GeolocationCoordinates.heading
읽기 전용 속성은 장치가 이동 중인 방위를 나타내는 double
입니다. 이 값은 장치가 북쪽에서 벗어난 각도를 도(°) 단위로 표현하며, 진북(真北)의 0
도부터 시계방향으로 진행하므로 90
도는 동쪽, 270
도는 서쪽입니다. heading
은 GeolocationCoordinates.speed
가 0
이면 NaN
이고, 장치가 방위 정보를 제공하지 못하면 null
입니다.
값
장치가 이동 중인 방위를 나타내는 double
입니다.
명세서
Specification |
---|
Geolocation # heading-attribute |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
heading |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.