Simple compass PWA
 
 
 
Go to file
Keith Irwin 48979fecec
Fixed URL
2020-03-29 18:30:59 -05:00
icons init commit 2016-12-12 22:09:21 -05:00
.gitignore Added c9 to gitignore 2017-03-29 03:38:32 -04:00
LICENSE.md init commit 2016-12-12 22:09:21 -05:00
README.md Fixed URL 2020-03-29 18:30:59 -05:00
index.html Use native altutude data 2017-08-07 11:15:51 -04:00
manifest.webmanifest Added to manifest 2016-12-14 20:48:46 -05:00
rose.svg init commit 2016-12-12 22:09:21 -05:00
script.js Use native altutude data 2017-08-07 11:15:51 -04:00
style.css Minor fixes 2017-03-29 08:02:16 -04:00

README.md

Compass

by Keith Irwin

Compass is a web app written in plain HTML/CSS/JS. It uses DeviceOrientationEvent and geolocation to show a smartphone's GPS coordinates and polar orientation.

Instructions

Open compass.ki9.us on a smartphone with a compass. Hold the phone level and it should show your direction.

Is this accurate?

No, not really. Results may vary. As of this writing, Firefox and Chrome browsers handle the DeviceOrientation spec differently. It's only been tested on Chrome for Android.

Known issues

  • When the screen is rotated, the image gets rotated 90 degrees. I don't know how this could be fixed.

Image sources

The images used in this app were labeled for reuse with modification: