{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2482","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2482/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2482/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2482/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/2482","id":150167191,"number":2482,"title":"overzoomed tiles dont draw where longitude > 180 or < -180","user":{"login":"ian29","id":1056106,"avatar_url":"https://avatars.githubusercontent.com/u/1056106?v=3","gravatar_id":"","url":"https://api.github.com/users/ian29","html_url":"https://github.com/ian29","followers_url":"https://api.github.com/users/ian29/followers","following_url":"https://api.github.com/users/ian29/following{/other_user}","gists_url":"https://api.github.com/users/ian29/gists{/gist_id}","starred_url":"https://api.github.com/users/ian29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ian29/subscriptions","organizations_url":"https://api.github.com/users/ian29/orgs","repos_url":"https://api.github.com/users/ian29/repos","events_url":"https://api.github.com/users/ian29/events{/privacy}","received_events_url":"https://api.github.com/users/ian29/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/bug","name":"bug","color":"0052cc"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/release%20blocker","name":"release blocker","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-21T19:19:19Z","updated_at":"2016-04-27T23:59:05Z","closed_at":null,"body":"<!--\r\nHello! Thanks for contributing. To help us diagnose your problem quickly, please:\r\n\r\n - Include a link to a minimal demonstration of the bug. We recommend using https://jsbin.com\r\n - Ensure you can reproduce the bug using the latest release.\r\n - Check the console for relevant errors and warnings\r\n - Only post to report a bug or request a feature. Direct all other questions to https://stackoverflow.com/questions/tagged/mapbox-gl-js\r\n-->\r\n\r\n**mapbox-gl-js version**: 0.17.0\r\n\r\n### Steps to Trigger Behavior\r\n\r\n1. view a map that overzooms vector tiles (e.g. z17 or higher on most mapbox maps)\r\n2. pan around the world so that your longitude is > 180 or < -180\r\n\r\ncompare these urls:\r\n- wrapped https://api.mapbox.com/styles/v1/villeda/cifa01lh61psbskknpzv1eubz.html?title=true&access_token=pk.eyJ1IjoidmlsbGVkYSIsImEiOiJNY2hHRXVrIn0.epqbDBYitFBInieZNLLiWw#17/37.77891/-482.41879\r\n- not wrapped https://api.mapbox.com/styles/v1/villeda/cifa01lh61psbskknpzv1eubz.html?title=true&access_token=pk.eyJ1IjoidmlsbGVkYSIsImEiOiJNY2hHRXVrIn0.epqbDBYitFBInieZNLLiWw#17/37.77891/-122.41879\r\n\r\n- no errors in console\r\n- chrome 49.0.2623.112 (64-bit)\r\n\r\n### Expected Behavior\r\n\r\nyou should see a map at url hash like `17/37.77891/-482.41879`\r\n\r\n### Actual Behavior\r\n\r\nyou dont see a map at url hash like `17/37.77891/-482.41879`, just the background color.\r\n\r\ncc @ansis @nickidlugash "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/215268051","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/2482#issuecomment-215268051","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2482","id":215268051,"user":{"login":"lucaswoj","id":281306,"avatar_url":"https://avatars.githubusercontent.com/u/281306?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswoj","html_url":"https://github.com/lucaswoj","followers_url":"https://api.github.com/users/lucaswoj/followers","following_url":"https://api.github.com/users/lucaswoj/following{/other_user}","gists_url":"https://api.github.com/users/lucaswoj/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswoj/subscriptions","organizations_url":"https://api.github.com/users/lucaswoj/orgs","repos_url":"https://api.github.com/users/lucaswoj/repos","events_url":"https://api.github.com/users/lucaswoj/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswoj/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T23:59:05Z","updated_at":"2016-04-27T23:59:05Z","body":"I've narrowed this problem down further to our `TileCoord.cover` calculations when `w != 0` and `z != actualZ`. In particular, `z16coord.y == z15coord.y` while `z15coord.y == z14coord.y * 2`.\r\n\r\nI'm finding this code hard to reason about. @ansis, could you take a look and let me know if you see an obvious fix?"}}