openlayers/ol3 — pull request #552 by fredj (2013-04-15 11:41:40+00:00)
Title: Add ol.DeviceOrientation

Retrieve the [orientation of the device](http://www.w3.org/TR/orientation-event/). All the angles are in radian.

demo: http://dev.camptocamp.com/files/fredj/deviceorientation/examples/device-orientation.html

tested with Chrome mobile and firefoxon Android.

TODO:
- [ ] tracking property (activate/deactivate)
- [ ] [device motion] (http://www.w3.org/TR/orientation-event/#devicemotion)
- [ ] compass heading (see `event.absolute` and `webkitCompassHeading`)
- [ ] better demo (somthing like: http://ariya.github.io/js/marblebox/)