This version of the documentation is outdated!
Click here for the latest released version.
compassHeading
A CompassHeading
物件返回到 [compassSuccess](compassSuccess.html)
回呼函數。
屬性
magneticHeading: 在某一時刻在時間中從 0-359.99 度的標題。(人數)
trueHeading: 在某一時刻的時間與地理北極在 0-359.99 度標題。 負值表示不能確定真正的標題。 (人數)
headingAccuracy: 中度報告的標題和真正標題之間的偏差。(人數)
時間戳記: 本項決定在其中的時間。(毫秒)
說明
CompassHeading
物件返回到 [compassSuccess](compassSuccess.html)
回呼函數。
Android 的怪癖
trueHeading
不受支援,但報告相同的值magneticHeading
headingAccuracy
是始終為 0 因為有沒有區別magneticHeading
和trueHeading
.
iOS 的怪癖
trueHeading
is only returned when location services are enabled vianavigator.geolocation.watchLocation()
IOS 4 設備及以上標題因素在該設備的當前方向,不涉及其絕對的立場,為應用程式支援的方向。