Add 'heading' property to ol.DeviceOrientation
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
<p>α : <code id="alpha"></code></p>
|
||||
<p>β : <code id="beta"></code></p>
|
||||
<p>γ : <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>
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user