enketo-core icon indicating copy to clipboard operation
enketo-core copied to clipboard

Add bearing widget

Open MartijnR opened this issue 7 years ago • 5 comments

similar to ODK Collect, or better

MartijnR avatar Aug 17 '17 23:08 MartijnR

  • [ ] 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

MartijnR avatar Jun 06 '19 14:06 MartijnR

https://mobiforge.com/design-development/html5-mobile-web-device-orientation-events

https://caniuse.com/#search=deviceorientation

https://codepen.io/jorgecardoso/pen/ONmrwm?&page=1

MartijnR avatar Oct 29 '19 20:10 MartijnR

https://codepen.io/MartijnR/pen/wvvpzwB?editors=1010

MartijnR avatar Nov 01 '19 19:11 MartijnR

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.

MartijnR avatar Nov 01 '19 20:11 MartijnR

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.

MartijnR avatar Nov 01 '19 20:11 MartijnR