enketo-core
enketo-core copied to clipboard
Add bearing widget
similar to ODK Collect, or better
- [ ] create an XLSForm with this widget
- [ ] test in ODK Collect to see functionality (easiest may be upload XLSForm to KoBoToolbox or Ona.io)
- [ ] implement in Enketo
- [ ] test in Grid and Non-grid theme
https://mobiforge.com/design-development/html5-mobile-web-device-orientation-events
https://caniuse.com/#search=deviceorientation
https://codepen.io/jorgecardoso/pen/ONmrwm?&page=1
https://codepen.io/MartijnR/pen/wvvpzwB?editors=1010
Not sure if feasible. The goal would be to only show a bearing if we know it work on that device and browser.
Here is the only app I found so far that somewhat works: https://lamplightdev.github.io/compass/, but it actually has a big deviation between iOS and Chrome (could be magnetic vs true), and Chrome/android is 180 degrees flipped.
I have given up as I think this is not possible to do at this moment due to absence of access to absolute bearings in Chrome on Android (haven't looked much at other platforms because this platform is the key) in Oct 2019.