[OpenLayers-Commits] r11336 - sandbox/sbrunner/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Feb 23 10:45:10 EST 2011


Author: sbrunner
Date: 2011-02-23 07:45:10 -0800 (Wed, 23 Feb 2011)
New Revision: 11336

Modified:
   sandbox/sbrunner/openlayers/examples/geolocation.js
Log:
add debug messages

Modified: sandbox/sbrunner/openlayers/examples/geolocation.js
===================================================================
--- sandbox/sbrunner/openlayers/examples/geolocation.js	2011-02-23 15:32:32 UTC (rev 11335)
+++ sandbox/sbrunner/openlayers/examples/geolocation.js	2011-02-23 15:45:10 UTC (rev 11336)
@@ -124,15 +124,24 @@
 // Device Orientation
 if (window.DeviceOrientationEvent) {
     window.addEventListener("deviceorientation", function(event) {
+        window.alert(111);
         if (typeof(event.alpha) != 'undefined') {
+        window.alert(222);
             var orientation = event.alpha - window.orientation - 90;
+        window.alert(333);
             var img = Openlayers.Util.getElement('northimg');
+        window.alert(444);
             var value = "rotate(" + event.orientation + "deg)";
+        window.alert(555);
             img.style.transform = value;
+        window.alert(666);
             img.style.webkitTransform = value;
+        window.alert(777);
 
             arrow.style.rotation = -event.orientation;
+        window.alert(888);
             arrow.layer.drawFeature(arrow);
+        window.alert(999);
         }
         else {
             OpenLayers.Util.getElement('north').style.display = "none";



More information about the Commits mailing list