This version of the documentation is outdated!
Click here for the latest released version.
compassSuccess
提供了通過的羅經航向資訊的 onSuccess 回呼函數 [compassHeading](compassHeading.html)
物件。
function(heading) {
// Do something
}
參數
- 標題: 標題資訊。() compassHeading
示例
function onSuccess(heading) {
alert('Heading: ' + heading.magneticHeading);
};