Compass: true north versus magnetic north

385
1
Jump to solution
05-25-2020 03:15 PM
PaulHaakma
Regular Contributor

Are there any samples that might show how to get the true north vs magnetic north?

Looking at the QML 'Compass' documentation, it looks like the 'currentOrientation' property shows the magnetic north direction. I can't see any methods, properties or services in qml that would calculate true north.

Does anyone have any suggestions on how to work this out within an app?

cheers,

-Paul

0 Kudos
1 Solution

Accepted Solutions
ErwinSoekianto
Esri Regular Contributor

Paul, 

Unfortunately, AppStudio uses the Compass component from QML, so we are bound with that limitation. 

I think the hardware (mobile phones) will give the magnetic north, and the true north would be calculated based on that, perhaps there are 3rd party javascript libraries out there that can help.

Thank you,

Erwin. 

View solution in original post

0 Kudos
1 Reply
ErwinSoekianto
Esri Regular Contributor

Paul, 

Unfortunately, AppStudio uses the Compass component from QML, so we are bound with that limitation. 

I think the hardware (mobile phones) will give the magnetic north, and the true north would be calculated based on that, perhaps there are 3rd party javascript libraries out there that can help.

Thank you,

Erwin. 

0 Kudos