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.

보안 컨텍스트: 이 기능은 일부 또는 모든 지원 브라우저보안 컨텍스트 (HTTPS)에서만 사용할 수 있습니다.

GeolocationCoordinates.heading 읽기 전용 속성은 장치가 이동 중인 방위를 나타내는 double입니다. 이 값은 장치가 북쪽에서 벗어난 각도를 도(°) 단위로 표현하며, 진북(真北)의 0도부터 시계방향으로 진행하므로 90도는 동쪽, 270도는 서쪽입니다. headingGeolocationCoordinates.speed0이면 NaN이고, 장치가 방위 정보를 제공하지 못하면 null입니다.

장치가 이동 중인 방위를 나타내는 double입니다.

명세서

Specification
Geolocation
# heading-attribute

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
heading

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Has more compatibility info.

같이 보기