Add 'heading' property to ol.DeviceOrientation

This commit is contained in:
Frederic Junod
2013-04-16 11:40:10 +02:00
parent c431cc7f63
commit 15e5242611
3 changed files with 22 additions and 3 deletions
+1
View File
@@ -43,6 +43,7 @@
<p>&alpha; : <code id="alpha"></code></p>
<p>&beta; : <code id="beta"></code></p>
<p>&gamma; : <code id="gamma"></code></p>
<p>heading : <code id="heading"></code></p>
<p id="shortdesc">Listen to DeviceOrientation events</p>
<div id="docs">
<p>See the <a href="device-orientation.js" target="_blank">device-orientation.js source</a> to see how this is done.</p>
+1
View File
@@ -29,4 +29,5 @@ deviceOrientation.on('changed', function() {
document.getElementById('alpha').innerHTML = deviceOrientation.getAlpha();
document.getElementById('beta').innerHTML = deviceOrientation.getBeta();
document.getElementById('gamma').innerHTML = deviceOrientation.getGamma();
document.getElementById('heading').innerHTML = deviceOrientation.getHeading();
});