{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1857","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1857/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1857/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1857/events","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1857","id":123333025,"number":1857,"title":"Fly across the antimeridan if shorter","user":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-12-21T18:31:15Z","updated_at":"2015-12-22T00:31:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/pulls/1857","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1857","diff_url":"https://github.com/mapbox/mapbox-gl-js/pull/1857.diff","patch_url":"https://github.com/mapbox/mapbox-gl-js/pull/1857.patch"},"body":"If flying across the antimeridian yields a shorter flight path than flying across the Prime Meridian, cross the antimeridian. This PR also adds a full complement of unit tests based on the `easeTo()` unit tests and fixes a couple corner cases that differ between `easeTo()` and `flyTo()`: now, if you fly to the current location but with a different zoom level, bearing, or pitch, we ease to the new camera instead of bailing. We also avoid offsetting if the `options` don’t call for a new center point.\r\n\r\nFixes #1853. Ported from mapbox/mapbox-gl-native@97c143a3388647e74a9f74a4994ab9d6aafe26a9 for mapbox/mapbox-gl-native#3355.\r\n\r\n/cc @mourner @lucaswoj"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/166466507","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1857#issuecomment-166466507","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1857","id":166466507,"user":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T00:31:33Z","updated_at":"2015-12-22T00:31:33Z","body":"Tests added and edge cases fixed. See the original comment, which I’ve edited, for details."}}