{"action":"closed","number":15,"pull_request":{"url":"https://api.github.com/repos/Leaflet/Leaflet.heat/pulls/15","id":19265432,"html_url":"https://github.com/Leaflet/Leaflet.heat/pull/15","diff_url":"https://github.com/Leaflet/Leaflet.heat/pull/15.diff","patch_url":"https://github.com/Leaflet/Leaflet.heat/pull/15.patch","issue_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/issues/15","number":15,"state":"closed","locked":false,"title":"fixed problem with override canvas other canvas","user":{"login":"artzub","id":134249,"avatar_url":"https://avatars.githubusercontent.com/u/134249?v=3","gravatar_id":"","url":"https://api.github.com/users/artzub","html_url":"https://github.com/artzub","followers_url":"https://api.github.com/users/artzub/followers","following_url":"https://api.github.com/users/artzub/following{/other_user}","gists_url":"https://api.github.com/users/artzub/gists{/gist_id}","starred_url":"https://api.github.com/users/artzub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artzub/subscriptions","organizations_url":"https://api.github.com/users/artzub/orgs","repos_url":"https://api.github.com/users/artzub/repos","events_url":"https://api.github.com/users/artzub/events{/privacy}","received_events_url":"https://api.github.com/users/artzub/received_events","type":"User","site_admin":false},"body":"fixed problem with override canvas other canvas,\r\nif use the heatlayer more than one time on a map.\r\n\r\nА теперь на русском.\r\nВ общем, браузеры не умеют рисовать одну канву над другой если они в одном ```div```\r\n```html\r\n<div class=\"leaflet-overlay-pane\">\r\n    <canvas class=\"leaflet-heatmap-layer leaflet-layer leaflet-zoom-animated\">\r\n    <!-- второй -->\r\n    <canvas class=\"leaflet-heatmap-layer leaflet-layer leaflet-zoom-animated\">\r\n</div>\r\n```\r\nТак вот если я допустим хочу создать два heatlayer для отображения различной активности.\r\nТо браузер перестает рисовать второй холст не будет виден, в частности в Chrome.\r\nЧтоб это решить надо каждую ```canvas``` обернуть в ```div```\r\nТо есть:\r\n```html\r\n<div class=\"leaflet-overlay-pane\">\r\n    <div class=\"leaflet-layer\">\r\n        <canvas class=\"leaflet-heatmap-layer leaflet-layer leaflet-zoom-animated\">\r\n    </div>\r\n    <!-- второй -->\r\n    <div class=\"leaflet-layer\">\r\n        <canvas class=\"leaflet-heatmap-layer leaflet-layer leaflet-zoom-animated\">\r\n    </div>\r\n</div>\r\n```\r\n","created_at":"2014-08-04T05:19:07Z","updated_at":"2015-02-16T19:23:40Z","closed_at":"2015-02-16T19:23:40Z","merged_at":null,"merge_commit_sha":"f772d0e7a0d69d6f2bb5572cc80dbb601df1ac1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/pulls/15/commits","review_comments_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/pulls/15/comments","review_comment_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/issues/15/comments","statuses_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/statuses/42f2c6c32b4f96ad8edee2db10ac698996c61044","head":{"label":"artzub:gh-pages","ref":"gh-pages","sha":"42f2c6c32b4f96ad8edee2db10ac698996c61044","user":{"login":"artzub","id":134249,"avatar_url":"https://avatars.githubusercontent.com/u/134249?v=3","gravatar_id":"","url":"https://api.github.com/users/artzub","html_url":"https://github.com/artzub","followers_url":"https://api.github.com/users/artzub/followers","following_url":"https://api.github.com/users/artzub/following{/other_user}","gists_url":"https://api.github.com/users/artzub/gists{/gist_id}","starred_url":"https://api.github.com/users/artzub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artzub/subscriptions","organizations_url":"https://api.github.com/users/artzub/orgs","repos_url":"https://api.github.com/users/artzub/repos","events_url":"https://api.github.com/users/artzub/events{/privacy}","received_events_url":"https://api.github.com/users/artzub/received_events","type":"User","site_admin":false},"repo":{"id":22592354,"name":"Leaflet.heat","full_name":"artzub/Leaflet.heat","owner":{"login":"artzub","id":134249,"avatar_url":"https://avatars.githubusercontent.com/u/134249?v=3","gravatar_id":"","url":"https://api.github.com/users/artzub","html_url":"https://github.com/artzub","followers_url":"https://api.github.com/users/artzub/followers","following_url":"https://api.github.com/users/artzub/following{/other_user}","gists_url":"https://api.github.com/users/artzub/gists{/gist_id}","starred_url":"https://api.github.com/users/artzub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artzub/subscriptions","organizations_url":"https://api.github.com/users/artzub/orgs","repos_url":"https://api.github.com/users/artzub/repos","events_url":"https://api.github.com/users/artzub/events{/privacy}","received_events_url":"https://api.github.com/users/artzub/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/artzub/Leaflet.heat","description":"A tiny, simple and fast heatmap plugin for Leaflet.","fork":true,"url":"https://api.github.com/repos/artzub/Leaflet.heat","forks_url":"https://api.github.com/repos/artzub/Leaflet.heat/forks","keys_url":"https://api.github.com/repos/artzub/Leaflet.heat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artzub/Leaflet.heat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artzub/Leaflet.heat/teams","hooks_url":"https://api.github.com/repos/artzub/Leaflet.heat/hooks","issue_events_url":"https://api.github.com/repos/artzub/Leaflet.heat/issues/events{/number}","events_url":"https://api.github.com/repos/artzub/Leaflet.heat/events","assignees_url":"https://api.github.com/repos/artzub/Leaflet.heat/assignees{/user}","branches_url":"https://api.github.com/repos/artzub/Leaflet.heat/branches{/branch}","tags_url":"https://api.github.com/repos/artzub/Leaflet.heat/tags","blobs_url":"https://api.github.com/repos/artzub/Leaflet.heat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artzub/Leaflet.heat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artzub/Leaflet.heat/git/refs{/sha}","trees_url":"https://api.github.com/repos/artzub/Leaflet.heat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artzub/Leaflet.heat/statuses/{sha}","languages_url":"https://api.github.com/repos/artzub/Leaflet.heat/languages","stargazers_url":"https://api.github.com/repos/artzub/Leaflet.heat/stargazers","contributors_url":"https://api.github.com/repos/artzub/Leaflet.heat/contributors","subscribers_url":"https://api.github.com/repos/artzub/Leaflet.heat/subscribers","subscription_url":"https://api.github.com/repos/artzub/Leaflet.heat/subscription","commits_url":"https://api.github.com/repos/artzub/Leaflet.heat/commits{/sha}","git_commits_url":"https://api.github.com/repos/artzub/Leaflet.heat/git/commits{/sha}","comments_url":"https://api.github.com/repos/artzub/Leaflet.heat/comments{/number}","issue_comment_url":"https://api.github.com/repos/artzub/Leaflet.heat/issues/comments/{number}","contents_url":"https://api.github.com/repos/artzub/Leaflet.heat/contents/{+path}","compare_url":"https://api.github.com/repos/artzub/Leaflet.heat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artzub/Leaflet.heat/merges","archive_url":"https://api.github.com/repos/artzub/Leaflet.heat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artzub/Leaflet.heat/downloads","issues_url":"https://api.github.com/repos/artzub/Leaflet.heat/issues{/number}","pulls_url":"https://api.github.com/repos/artzub/Leaflet.heat/pulls{/number}","milestones_url":"https://api.github.com/repos/artzub/Leaflet.heat/milestones{/number}","notifications_url":"https://api.github.com/repos/artzub/Leaflet.heat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artzub/Leaflet.heat/labels{/name}","releases_url":"https://api.github.com/repos/artzub/Leaflet.heat/releases{/id}","created_at":"2014-08-04T04:52:55Z","updated_at":"2014-08-04T05:09:19Z","pushed_at":"2014-08-04T05:09:18Z","git_url":"git://github.com/artzub/Leaflet.heat.git","ssh_url":"git@github.com:artzub/Leaflet.heat.git","clone_url":"https://github.com/artzub/Leaflet.heat.git","svn_url":"https://github.com/artzub/Leaflet.heat","homepage":"http://leaflet.github.io/Leaflet.heat/demo","size":112,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"Leaflet:gh-pages","ref":"gh-pages","sha":"9a41e607d2c22d07543e9e979b3d599d686d2129","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":16408878,"name":"Leaflet.heat","full_name":"Leaflet/Leaflet.heat","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.heat","description":"A tiny, simple and fast heatmap plugin for Leaflet.","fork":false,"url":"https://api.github.com/repos/Leaflet/Leaflet.heat","forks_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/forks","keys_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/teams","hooks_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/hooks","issue_events_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/issues/events{/number}","events_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/events","assignees_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/assignees{/user}","branches_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/branches{/branch}","tags_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/tags","blobs_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/git/refs{/sha}","trees_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/statuses/{sha}","languages_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/languages","stargazers_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/stargazers","contributors_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/contributors","subscribers_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/subscribers","subscription_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/subscription","commits_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/commits{/sha}","git_commits_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/git/commits{/sha}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/comments{/number}","issue_comment_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/issues/comments/{number}","contents_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/contents/{+path}","compare_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/merges","archive_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/downloads","issues_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/issues{/number}","pulls_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/pulls{/number}","milestones_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/milestones{/number}","notifications_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/labels{/name}","releases_url":"https://api.github.com/repos/Leaflet/Leaflet.heat/releases{/id}","created_at":"2014-01-31T13:34:50Z","updated_at":"2015-02-14T07:32:48Z","pushed_at":"2014-11-25T18:37:16Z","git_url":"git://github.com/Leaflet/Leaflet.heat.git","ssh_url":"git@github.com:Leaflet/Leaflet.heat.git","clone_url":"https://github.com/Leaflet/Leaflet.heat.git","svn_url":"https://github.com/Leaflet/Leaflet.heat","homepage":"http://leaflet.github.io/Leaflet.heat/demo","size":442,"stargazers_count":226,"watchers_count":226,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"open_issues_count":12,"forks":43,"open_issues":12,"watchers":226,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/Leaflet/Leaflet.heat/pulls/15"},"html":{"href":"https://github.com/Leaflet/Leaflet.heat/pull/15"},"issue":{"href":"https://api.github.com/repos/Leaflet/Leaflet.heat/issues/15"},"comments":{"href":"https://api.github.com/repos/Leaflet/Leaflet.heat/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/Leaflet/Leaflet.heat/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/Leaflet/Leaflet.heat/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Leaflet/Leaflet.heat/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/Leaflet/Leaflet.heat/statuses/42f2c6c32b4f96ad8edee2db10ac698996c61044"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":7,"review_comments":0,"commits":1,"additions":4,"deletions":2,"changed_files":1}}