{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1305","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1305/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1305/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1305/events","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1305","id":90049361,"number":1305,"title":"Snap bearing to north","user":{"login":"mourner","id":25395,"avatar_url":"https://avatars.githubusercontent.com/u/25395?v=3","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-22T09:09:00Z","updated_at":"2015-06-23T19:00:33Z","closed_at":"2015-06-23T14:39:19Z","pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/pulls/1305","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1305","diff_url":"https://github.com/mapbox/mapbox-gl-js/pull/1305.diff","patch_url":"https://github.com/mapbox/mapbox-gl-js/pull/1305.patch"},"body":"Closes #1059. Adds `map.snapToNorth()` and uses it when doing drag rotate and pinch zoom.\r\nNot sure `bearingSnap` is the best option name but can't think of a better one.\r\n\r\ncc @jfirebaugh @friedbunny "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/114609240","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1305#issuecomment-114609240","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1305","id":114609240,"user":{"login":"friedbunny","id":1198851,"avatar_url":"https://avatars.githubusercontent.com/u/1198851?v=3","gravatar_id":"","url":"https://api.github.com/users/friedbunny","html_url":"https://github.com/friedbunny","followers_url":"https://api.github.com/users/friedbunny/followers","following_url":"https://api.github.com/users/friedbunny/following{/other_user}","gists_url":"https://api.github.com/users/friedbunny/gists{/gist_id}","starred_url":"https://api.github.com/users/friedbunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedbunny/subscriptions","organizations_url":"https://api.github.com/users/friedbunny/orgs","repos_url":"https://api.github.com/users/friedbunny/repos","events_url":"https://api.github.com/users/friedbunny/events{/privacy}","received_events_url":"https://api.github.com/users/friedbunny/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T19:00:33Z","updated_at":"2015-06-23T19:00:33Z","body":"Awesome, works really well. :+1:"}}