{"action":"created","comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/comments/50621390","id":50621390,"diff_hunk":"@@ -444,8 +444,9 @@ L.GridLayer = L.Layer.extend({\n \n \t_getTiledPixelBounds: function (center) {\n \t\tvar map = this._map,\n+\t\t    scale = map.getZoomScale(map.getZoom(), this._tileZoom),\n \t\t    pixelCenter = map.project(center, this._tileZoom).floor(),\n-\t\t    halfSize = map.getSize().divideBy(2);\n+\t\t    halfSize = map.getSize().divideBy(scale * 2);","path":"src/layer/tile/GridLayer.js","position":7,"original_position":7,"commit_id":"db016b7a30e6c05950aed0766ee9d1bb763ca540","original_commit_id":"db016b7a30e6c05950aed0766ee9d1bb763ca540","user":{"login":"yohanboniface","id":146023,"avatar_url":"https://avatars.githubusercontent.com/u/146023?v=3","gravatar_id":"","url":"https://api.github.com/users/yohanboniface","html_url":"https://github.com/yohanboniface","followers_url":"https://api.github.com/users/yohanboniface/followers","following_url":"https://api.github.com/users/yohanboniface/following{/other_user}","gists_url":"https://api.github.com/users/yohanboniface/gists{/gist_id}","starred_url":"https://api.github.com/users/yohanboniface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohanboniface/subscriptions","organizations_url":"https://api.github.com/users/yohanboniface/orgs","repos_url":"https://api.github.com/users/yohanboniface/repos","events_url":"https://api.github.com/users/yohanboniface/events{/privacy}","received_events_url":"https://api.github.com/users/yohanboniface/received_events","type":"User","site_admin":false},"body":"Scaling the size does not make sense when you think about it: the map *size* does not change from one zoom to another. :)\r\n\r\nSo what this revert do is make Leaflet request too much tiles (like 4 times too much in some round cases), so it seems to be fixing the issue but it's not ;)","created_at":"2016-01-23T15:41:44Z","updated_at":"2016-01-23T15:41:44Z","html_url":"https://github.com/Leaflet/Leaflet/pull/4156#discussion_r50621390","pull_request_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4156","_links":{"self":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/comments/50621390"},"html":{"href":"https://github.com/Leaflet/Leaflet/pull/4156#discussion_r50621390"},"pull_request":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4156"}}},"pull_request":{"url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4156","id":56321465,"html_url":"https://github.com/Leaflet/Leaflet/pull/4156","diff_url":"https://github.com/Leaflet/Leaflet/pull/4156.diff","patch_url":"https://github.com/Leaflet/Leaflet/pull/4156.patch","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/4156","number":4156,"state":"closed","locked":false,"title":"Partial revert of e2fbe196, fixes #4145","user":{"login":"IvanSanchez","id":1125786,"avatar_url":"https://avatars.githubusercontent.com/u/1125786?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanSanchez","html_url":"https://github.com/IvanSanchez","followers_url":"https://api.github.com/users/IvanSanchez/followers","following_url":"https://api.github.com/users/IvanSanchez/following{/other_user}","gists_url":"https://api.github.com/users/IvanSanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanSanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanSanchez/subscriptions","organizations_url":"https://api.github.com/users/IvanSanchez/orgs","repos_url":"https://api.github.com/users/IvanSanchez/repos","events_url":"https://api.github.com/users/IvanSanchez/events{/privacy}","received_events_url":"https://api.github.com/users/IvanSanchez/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-18T09:59:57Z","updated_at":"2016-01-23T15:41:44Z","closed_at":"2016-01-18T13:05:09Z","merged_at":"2016-01-18T13:05:09Z","merge_commit_sha":"e9b4a52256cadecf6a0ebccd5fa405e6a61fcefe","assignee":null,"milestone":{"url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/27","html_url":"https://github.com/Leaflet/Leaflet/milestones/1.0-rc1","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/27/labels","id":1342302,"number":27,"title":"1.0-rc1","description":"","creator":{"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},"open_issues":23,"closed_issues":23,"state":"open","created_at":"2015-10-07T10:17:53Z","updated_at":"2016-01-18T13:05:13Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4156/commits","review_comments_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4156/comments","review_comment_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/4156/comments","statuses_url":"https://api.github.com/repos/Leaflet/Leaflet/statuses/db016b7a30e6c05950aed0766ee9d1bb763ca540","head":{"label":"Leaflet:tile-bounds","ref":"tile-bounds","sha":"db016b7a30e6c05950aed0766ee9d1bb763ca540","user":{"login":"Leaflet","id":2854298,"avatar_url":"https://avatars.githubusercontent.com/u/2854298?v=3","gravatar_id":"","url":"https://api.github.com/users/Leaflet","html_url":"https://github.com/Leaflet","followers_url":"https://api.github.com/users/Leaflet/followers","following_url":"https://api.github.com/users/Leaflet/following{/other_user}","gists_url":"https://api.github.com/users/Leaflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Leaflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leaflet/subscriptions","organizations_url":"https://api.github.com/users/Leaflet/orgs","repos_url":"https://api.github.com/users/Leaflet/repos","events_url":"https://api.github.com/users/Leaflet/events{/privacy}","received_events_url":"https://api.github.com/users/Leaflet/received_events","type":"Organization","site_admin":false},"repo":{"id":931135,"name":"Leaflet","full_name":"Leaflet/Leaflet","owner":{"login":"Leaflet","id":2854298,"avatar_url":"https://avatars.githubusercontent.com/u/2854298?v=3","gravatar_id":"","url":"https://api.github.com/users/Leaflet","html_url":"https://github.com/Leaflet","followers_url":"https://api.github.com/users/Leaflet/followers","following_url":"https://api.github.com/users/Leaflet/following{/other_user}","gists_url":"https://api.github.com/users/Leaflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Leaflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leaflet/subscriptions","organizations_url":"https://api.github.com/users/Leaflet/orgs","repos_url":"https://api.github.com/users/Leaflet/repos","events_url":"https://api.github.com/users/Leaflet/events{/privacy}","received_events_url":"https://api.github.com/users/Leaflet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Leaflet/Leaflet","description":" :leaves: JavaScript library for mobile-friendly interactive maps","fork":false,"url":"https://api.github.com/repos/Leaflet/Leaflet","forks_url":"https://api.github.com/repos/Leaflet/Leaflet/forks","keys_url":"https://api.github.com/repos/Leaflet/Leaflet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Leaflet/Leaflet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Leaflet/Leaflet/teams","hooks_url":"https://api.github.com/repos/Leaflet/Leaflet/hooks","issue_events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/events{/number}","events_url":"https://api.github.com/repos/Leaflet/Leaflet/events","assignees_url":"https://api.github.com/repos/Leaflet/Leaflet/assignees{/user}","branches_url":"https://api.github.com/repos/Leaflet/Leaflet/branches{/branch}","tags_url":"https://api.github.com/repos/Leaflet/Leaflet/tags","blobs_url":"https://api.github.com/repos/Leaflet/Leaflet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Leaflet/Leaflet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Leaflet/Leaflet/git/refs{/sha}","trees_url":"https://api.github.com/repos/Leaflet/Leaflet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Leaflet/Leaflet/statuses/{sha}","languages_url":"https://api.github.com/repos/Leaflet/Leaflet/languages","stargazers_url":"https://api.github.com/repos/Leaflet/Leaflet/stargazers","contributors_url":"https://api.github.com/repos/Leaflet/Leaflet/contributors","subscribers_url":"https://api.github.com/repos/Leaflet/Leaflet/subscribers","subscription_url":"https://api.github.com/repos/Leaflet/Leaflet/subscription","commits_url":"https://api.github.com/repos/Leaflet/Leaflet/commits{/sha}","git_commits_url":"https://api.github.com/repos/Leaflet/Leaflet/git/commits{/sha}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/comments{/number}","issue_comment_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments{/number}","contents_url":"https://api.github.com/repos/Leaflet/Leaflet/contents/{+path}","compare_url":"https://api.github.com/repos/Leaflet/Leaflet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Leaflet/Leaflet/merges","archive_url":"https://api.github.com/repos/Leaflet/Leaflet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Leaflet/Leaflet/downloads","issues_url":"https://api.github.com/repos/Leaflet/Leaflet/issues{/number}","pulls_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls{/number}","milestones_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones{/number}","notifications_url":"https://api.github.com/repos/Leaflet/Leaflet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/labels{/name}","releases_url":"https://api.github.com/repos/Leaflet/Leaflet/releases{/id}","deployments_url":"https://api.github.com/repos/Leaflet/Leaflet/deployments","created_at":"2010-09-22T16:57:44Z","updated_at":"2016-01-23T11:17:56Z","pushed_at":"2016-01-22T11:36:05Z","git_url":"git://github.com/Leaflet/Leaflet.git","ssh_url":"git@github.com:Leaflet/Leaflet.git","clone_url":"https://github.com/Leaflet/Leaflet.git","svn_url":"https://github.com/Leaflet/Leaflet","homepage":"http://leafletjs.com","size":40659,"stargazers_count":12633,"watchers_count":12633,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":2274,"mirror_url":null,"open_issues_count":250,"forks":2274,"open_issues":250,"watchers":12633,"default_branch":"master"}},"base":{"label":"Leaflet:master","ref":"master","sha":"b85e902970d87e2f11230fc6da5e70adee4bc5b6","user":{"login":"Leaflet","id":2854298,"avatar_url":"https://avatars.githubusercontent.com/u/2854298?v=3","gravatar_id":"","url":"https://api.github.com/users/Leaflet","html_url":"https://github.com/Leaflet","followers_url":"https://api.github.com/users/Leaflet/followers","following_url":"https://api.github.com/users/Leaflet/following{/other_user}","gists_url":"https://api.github.com/users/Leaflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Leaflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leaflet/subscriptions","organizations_url":"https://api.github.com/users/Leaflet/orgs","repos_url":"https://api.github.com/users/Leaflet/repos","events_url":"https://api.github.com/users/Leaflet/events{/privacy}","received_events_url":"https://api.github.com/users/Leaflet/received_events","type":"Organization","site_admin":false},"repo":{"id":931135,"name":"Leaflet","full_name":"Leaflet/Leaflet","owner":{"login":"Leaflet","id":2854298,"avatar_url":"https://avatars.githubusercontent.com/u/2854298?v=3","gravatar_id":"","url":"https://api.github.com/users/Leaflet","html_url":"https://github.com/Leaflet","followers_url":"https://api.github.com/users/Leaflet/followers","following_url":"https://api.github.com/users/Leaflet/following{/other_user}","gists_url":"https://api.github.com/users/Leaflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Leaflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leaflet/subscriptions","organizations_url":"https://api.github.com/users/Leaflet/orgs","repos_url":"https://api.github.com/users/Leaflet/repos","events_url":"https://api.github.com/users/Leaflet/events{/privacy}","received_events_url":"https://api.github.com/users/Leaflet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Leaflet/Leaflet","description":" :leaves: JavaScript library for mobile-friendly interactive maps","fork":false,"url":"https://api.github.com/repos/Leaflet/Leaflet","forks_url":"https://api.github.com/repos/Leaflet/Leaflet/forks","keys_url":"https://api.github.com/repos/Leaflet/Leaflet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Leaflet/Leaflet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Leaflet/Leaflet/teams","hooks_url":"https://api.github.com/repos/Leaflet/Leaflet/hooks","issue_events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/events{/number}","events_url":"https://api.github.com/repos/Leaflet/Leaflet/events","assignees_url":"https://api.github.com/repos/Leaflet/Leaflet/assignees{/user}","branches_url":"https://api.github.com/repos/Leaflet/Leaflet/branches{/branch}","tags_url":"https://api.github.com/repos/Leaflet/Leaflet/tags","blobs_url":"https://api.github.com/repos/Leaflet/Leaflet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Leaflet/Leaflet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Leaflet/Leaflet/git/refs{/sha}","trees_url":"https://api.github.com/repos/Leaflet/Leaflet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Leaflet/Leaflet/statuses/{sha}","languages_url":"https://api.github.com/repos/Leaflet/Leaflet/languages","stargazers_url":"https://api.github.com/repos/Leaflet/Leaflet/stargazers","contributors_url":"https://api.github.com/repos/Leaflet/Leaflet/contributors","subscribers_url":"https://api.github.com/repos/Leaflet/Leaflet/subscribers","subscription_url":"https://api.github.com/repos/Leaflet/Leaflet/subscription","commits_url":"https://api.github.com/repos/Leaflet/Leaflet/commits{/sha}","git_commits_url":"https://api.github.com/repos/Leaflet/Leaflet/git/commits{/sha}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/comments{/number}","issue_comment_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments{/number}","contents_url":"https://api.github.com/repos/Leaflet/Leaflet/contents/{+path}","compare_url":"https://api.github.com/repos/Leaflet/Leaflet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Leaflet/Leaflet/merges","archive_url":"https://api.github.com/repos/Leaflet/Leaflet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Leaflet/Leaflet/downloads","issues_url":"https://api.github.com/repos/Leaflet/Leaflet/issues{/number}","pulls_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls{/number}","milestones_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones{/number}","notifications_url":"https://api.github.com/repos/Leaflet/Leaflet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/labels{/name}","releases_url":"https://api.github.com/repos/Leaflet/Leaflet/releases{/id}","deployments_url":"https://api.github.com/repos/Leaflet/Leaflet/deployments","created_at":"2010-09-22T16:57:44Z","updated_at":"2016-01-23T11:17:56Z","pushed_at":"2016-01-22T11:36:05Z","git_url":"git://github.com/Leaflet/Leaflet.git","ssh_url":"git@github.com:Leaflet/Leaflet.git","clone_url":"https://github.com/Leaflet/Leaflet.git","svn_url":"https://github.com/Leaflet/Leaflet","homepage":"http://leafletjs.com","size":40659,"stargazers_count":12633,"watchers_count":12633,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":2274,"mirror_url":null,"open_issues_count":250,"forks":2274,"open_issues":250,"watchers":12633,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4156"},"html":{"href":"https://github.com/Leaflet/Leaflet/pull/4156"},"issue":{"href":"https://api.github.com/repos/Leaflet/Leaflet/issues/4156"},"comments":{"href":"https://api.github.com/repos/Leaflet/Leaflet/issues/4156/comments"},"review_comments":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4156/comments"},"review_comment":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4156/commits"},"statuses":{"href":"https://api.github.com/repos/Leaflet/Leaflet/statuses/db016b7a30e6c05950aed0766ee9d1bb763ca540"}}}}