Take this very simple method of watching a device\'s compass and then animating a MapKit JS map to that direction:
var watchID = navigator.compass.watchHeadin