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
度になります)。 GeolocationCoordinates.speed
が 0
である場合、 heading
は 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.