Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14839

Android: Geolocation HeadingData.x value is equal to HeadingData.magneticHeading

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.1.1, Release 3.2.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Android 4.0, Titanium 3.1.1 GA

      Description

      HeadingData returns magneticHeading instead of X axis value.
      Both properties contain the same value:

      Ti.Geolocation.purpose = "Testing Magnetic Heading";
       
      var win = Ti.UI.createWindow({
      	backgroundColor : 'white'
      });
       
      var Y = Ti.UI.createLabel({
      	font : {
      		fontSize : 30
      	},
      	text : "[Y]",
      	top : 10,
      	right : 5
      });
      var X = Ti.UI.createLabel({
      	font : {
      		fontSize : 30
      	},
      	text : "[X]",
      	top : 50,
      	right : 5
      });
      var magneticHeading = Ti.UI.createLabel({
      	font : {
      		fontSize : 30
      	},
      	text : "[magneticHeading]",
      	top : 90,
      	right : 5
      });
      win.add(Y);
      win.add(X);
      win.add(magneticHeading);
      win.open();
       
      function onMag(e) {
      	Y.text = 'Y: ' + e.heading.y;
      	X.text = 'X: ' + e.heading.x;
      	magneticHeading.text = 'magneticHeading: ' + e.heading.magneticHeading;
      }
       
      Ti.Geolocation.addEventListener('heading', onMag);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                andreykon Andrey Kon
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-17173
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration