[OpenLayers-Commits] r11197 - sandbox/cmoullet/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Feb 21 10:39:21 EST 2011
Author: cmoullet
Date: 2011-02-21 07:39:20 -0800 (Mon, 21 Feb 2011)
New Revision: 11197
Modified:
sandbox/cmoullet/openlayers/examples/accelerometer.html
Log:
Add rotation rate
Modified: sandbox/cmoullet/openlayers/examples/accelerometer.html
===================================================================
--- sandbox/cmoullet/openlayers/examples/accelerometer.html 2011-02-21 15:39:14 UTC (rev 11196)
+++ sandbox/cmoullet/openlayers/examples/accelerometer.html 2011-02-21 15:39:20 UTC (rev 11197)
@@ -28,9 +28,9 @@
document.getElementById('result').innerHTML = "accelerationIncludingGravity.x: " + event.accelerationIncludingGravity.x+ "<br>";
document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "accelerationIncludingGravity.y: " + event.accelerationIncludingGravity.y+ "<br>";
document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "accelerationIncludingGravity.z: " + event.accelerationIncludingGravity.z+ "<br>";
- //document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.alpha: " + event.rotationRate.alpha+ "<br>";
- //document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.beta: " + event.rotationRate.beta+ "<br>";
- //document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.gamm: " + event.rotationRate.gamma+ "<br>";
+ document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.alpha: " + event.rotationRate.alpha+ "<br>";
+ document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.beta: " + event.rotationRate.beta+ "<br>";
+ document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.gamm: " + event.rotationRate.gamma+ "<br>";
}, true);
}
if (window.MozOrientation) {
More information about the Commits
mailing list