{"action":"created","comment":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/comments/38551686","id":38551686,"diff_hunk":"@@ -172,6 +172,7 @@ ol.layer.Layer.prototype.setMap = function(map) {\n         map, ol.render.EventType.PRECOMPOSE, function(evt) {\n           var layerState = this.getLayerState();\n           layerState.managed = false;\n+          layerState.zIndex = 1000;","path":"src/ol/layer/layer.js","position":13,"original_position":13,"commit_id":"d85c681a7298565425d29329f4c431b0fb411391","original_commit_id":"d85c681a7298565425d29329f4c431b0fb411391","user":{"login":"elemoine","id":76594,"avatar_url":"https://avatars.githubusercontent.com/u/76594?v=3","gravatar_id":"","url":"https://api.github.com/users/elemoine","html_url":"https://github.com/elemoine","followers_url":"https://api.github.com/users/elemoine/followers","following_url":"https://api.github.com/users/elemoine/following{/other_user}","gists_url":"https://api.github.com/users/elemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/elemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemoine/subscriptions","organizations_url":"https://api.github.com/users/elemoine/orgs","repos_url":"https://api.github.com/users/elemoine/repos","events_url":"https://api.github.com/users/elemoine/events{/privacy}","received_events_url":"https://api.github.com/users/elemoine/received_events","type":"User","site_admin":false},"body":"> The proposition of @elemoine to allow setting Z-index on user unmanaged layers fits well with this vision. It provides the maximum flexibility to the user.\r\n\r\nThe implementation is not obvious to me though. ","created_at":"2015-09-02T16:12:01Z","updated_at":"2015-09-02T16:12:01Z","html_url":"https://github.com/openlayers/ol3/pull/4069#discussion_r38551686","pull_request_url":"https://api.github.com/repos/openlayers/ol3/pulls/4069","_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments/38551686"},"html":{"href":"https://github.com/openlayers/ol3/pull/4069#discussion_r38551686"},"pull_request":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4069"}}},"pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/4069","id":43892780,"html_url":"https://github.com/openlayers/ol3/pull/4069","diff_url":"https://github.com/openlayers/ol3/pull/4069.diff","patch_url":"https://github.com/openlayers/ol3/pull/4069.patch","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/4069","number":4069,"state":"open","locked":false,"title":"Add Z-index to layers","user":{"login":"gberaudo","id":7294662,"avatar_url":"https://avatars.githubusercontent.com/u/7294662?v=3","gravatar_id":"","url":"https://api.github.com/users/gberaudo","html_url":"https://github.com/gberaudo","followers_url":"https://api.github.com/users/gberaudo/followers","following_url":"https://api.github.com/users/gberaudo/following{/other_user}","gists_url":"https://api.github.com/users/gberaudo/gists{/gist_id}","starred_url":"https://api.github.com/users/gberaudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gberaudo/subscriptions","organizations_url":"https://api.github.com/users/gberaudo/orgs","repos_url":"https://api.github.com/users/gberaudo/repos","events_url":"https://api.github.com/users/gberaudo/events{/privacy}","received_events_url":"https://api.github.com/users/gberaudo/received_events","type":"User","site_admin":false},"body":"This commit allows setting a Z-index property on the layers and uses\r\nit in the canvas, WEBGL and DOM map renderers for ordering the layers\r\nbefore rendering.\r\n\r\nDefault z-index is `0` for managed layers and `1000` for unmanaged ones.\r\nIt allows always on bottom, always on top and more complex layer layouts.","created_at":"2015-09-01T15:52:11Z","updated_at":"2015-09-02T16:12:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40ec5629bd244792d1d7d58f48d975c96938a7ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openlayers/ol3/pulls/4069/commits","review_comments_url":"https://api.github.com/repos/openlayers/ol3/pulls/4069/comments","review_comment_url":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/4069/comments","statuses_url":"https://api.github.com/repos/openlayers/ol3/statuses/d85c681a7298565425d29329f4c431b0fb411391","head":{"label":"gberaudo:layer_zindex","ref":"layer_zindex","sha":"d85c681a7298565425d29329f4c431b0fb411391","user":{"login":"gberaudo","id":7294662,"avatar_url":"https://avatars.githubusercontent.com/u/7294662?v=3","gravatar_id":"","url":"https://api.github.com/users/gberaudo","html_url":"https://github.com/gberaudo","followers_url":"https://api.github.com/users/gberaudo/followers","following_url":"https://api.github.com/users/gberaudo/following{/other_user}","gists_url":"https://api.github.com/users/gberaudo/gists{/gist_id}","starred_url":"https://api.github.com/users/gberaudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gberaudo/subscriptions","organizations_url":"https://api.github.com/users/gberaudo/orgs","repos_url":"https://api.github.com/users/gberaudo/repos","events_url":"https://api.github.com/users/gberaudo/events{/privacy}","received_events_url":"https://api.github.com/users/gberaudo/received_events","type":"User","site_admin":false},"repo":{"id":23425578,"name":"ol3","full_name":"gberaudo/ol3","owner":{"login":"gberaudo","id":7294662,"avatar_url":"https://avatars.githubusercontent.com/u/7294662?v=3","gravatar_id":"","url":"https://api.github.com/users/gberaudo","html_url":"https://github.com/gberaudo","followers_url":"https://api.github.com/users/gberaudo/followers","following_url":"https://api.github.com/users/gberaudo/following{/other_user}","gists_url":"https://api.github.com/users/gberaudo/gists{/gist_id}","starred_url":"https://api.github.com/users/gberaudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gberaudo/subscriptions","organizations_url":"https://api.github.com/users/gberaudo/orgs","repos_url":"https://api.github.com/users/gberaudo/repos","events_url":"https://api.github.com/users/gberaudo/events{/privacy}","received_events_url":"https://api.github.com/users/gberaudo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gberaudo/ol3","description":"OpenLayers 3","fork":true,"url":"https://api.github.com/repos/gberaudo/ol3","forks_url":"https://api.github.com/repos/gberaudo/ol3/forks","keys_url":"https://api.github.com/repos/gberaudo/ol3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gberaudo/ol3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gberaudo/ol3/teams","hooks_url":"https://api.github.com/repos/gberaudo/ol3/hooks","issue_events_url":"https://api.github.com/repos/gberaudo/ol3/issues/events{/number}","events_url":"https://api.github.com/repos/gberaudo/ol3/events","assignees_url":"https://api.github.com/repos/gberaudo/ol3/assignees{/user}","branches_url":"https://api.github.com/repos/gberaudo/ol3/branches{/branch}","tags_url":"https://api.github.com/repos/gberaudo/ol3/tags","blobs_url":"https://api.github.com/repos/gberaudo/ol3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gberaudo/ol3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gberaudo/ol3/git/refs{/sha}","trees_url":"https://api.github.com/repos/gberaudo/ol3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gberaudo/ol3/statuses/{sha}","languages_url":"https://api.github.com/repos/gberaudo/ol3/languages","stargazers_url":"https://api.github.com/repos/gberaudo/ol3/stargazers","contributors_url":"https://api.github.com/repos/gberaudo/ol3/contributors","subscribers_url":"https://api.github.com/repos/gberaudo/ol3/subscribers","subscription_url":"https://api.github.com/repos/gberaudo/ol3/subscription","commits_url":"https://api.github.com/repos/gberaudo/ol3/commits{/sha}","git_commits_url":"https://api.github.com/repos/gberaudo/ol3/git/commits{/sha}","comments_url":"https://api.github.com/repos/gberaudo/ol3/comments{/number}","issue_comment_url":"https://api.github.com/repos/gberaudo/ol3/issues/comments{/number}","contents_url":"https://api.github.com/repos/gberaudo/ol3/contents/{+path}","compare_url":"https://api.github.com/repos/gberaudo/ol3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gberaudo/ol3/merges","archive_url":"https://api.github.com/repos/gberaudo/ol3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gberaudo/ol3/downloads","issues_url":"https://api.github.com/repos/gberaudo/ol3/issues{/number}","pulls_url":"https://api.github.com/repos/gberaudo/ol3/pulls{/number}","milestones_url":"https://api.github.com/repos/gberaudo/ol3/milestones{/number}","notifications_url":"https://api.github.com/repos/gberaudo/ol3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gberaudo/ol3/labels{/name}","releases_url":"https://api.github.com/repos/gberaudo/ol3/releases{/id}","created_at":"2014-08-28T11:32:42Z","updated_at":"2015-05-15T11:16:02Z","pushed_at":"2015-09-02T10:35:13Z","git_url":"git://github.com/gberaudo/ol3.git","ssh_url":"git@github.com:gberaudo/ol3.git","clone_url":"https://github.com/gberaudo/ol3.git","svn_url":"https://github.com/gberaudo/ol3","homepage":"http://ol3js.org/","size":32064,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"openlayers:master","ref":"master","sha":"f5df71ba7057a738f986903339cc8781b60580cd","user":{"login":"openlayers","id":240579,"avatar_url":"https://avatars.githubusercontent.com/u/240579?v=3","gravatar_id":"","url":"https://api.github.com/users/openlayers","html_url":"https://github.com/openlayers","followers_url":"https://api.github.com/users/openlayers/followers","following_url":"https://api.github.com/users/openlayers/following{/other_user}","gists_url":"https://api.github.com/users/openlayers/gists{/gist_id}","starred_url":"https://api.github.com/users/openlayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openlayers/subscriptions","organizations_url":"https://api.github.com/users/openlayers/orgs","repos_url":"https://api.github.com/users/openlayers/repos","events_url":"https://api.github.com/users/openlayers/events{/privacy}","received_events_url":"https://api.github.com/users/openlayers/received_events","type":"Organization","site_admin":false},"repo":{"id":4723248,"name":"ol3","full_name":"openlayers/ol3","owner":{"login":"openlayers","id":240579,"avatar_url":"https://avatars.githubusercontent.com/u/240579?v=3","gravatar_id":"","url":"https://api.github.com/users/openlayers","html_url":"https://github.com/openlayers","followers_url":"https://api.github.com/users/openlayers/followers","following_url":"https://api.github.com/users/openlayers/following{/other_user}","gists_url":"https://api.github.com/users/openlayers/gists{/gist_id}","starred_url":"https://api.github.com/users/openlayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openlayers/subscriptions","organizations_url":"https://api.github.com/users/openlayers/orgs","repos_url":"https://api.github.com/users/openlayers/repos","events_url":"https://api.github.com/users/openlayers/events{/privacy}","received_events_url":"https://api.github.com/users/openlayers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openlayers/ol3","description":"OpenLayers 3","fork":false,"url":"https://api.github.com/repos/openlayers/ol3","forks_url":"https://api.github.com/repos/openlayers/ol3/forks","keys_url":"https://api.github.com/repos/openlayers/ol3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openlayers/ol3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openlayers/ol3/teams","hooks_url":"https://api.github.com/repos/openlayers/ol3/hooks","issue_events_url":"https://api.github.com/repos/openlayers/ol3/issues/events{/number}","events_url":"https://api.github.com/repos/openlayers/ol3/events","assignees_url":"https://api.github.com/repos/openlayers/ol3/assignees{/user}","branches_url":"https://api.github.com/repos/openlayers/ol3/branches{/branch}","tags_url":"https://api.github.com/repos/openlayers/ol3/tags","blobs_url":"https://api.github.com/repos/openlayers/ol3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openlayers/ol3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openlayers/ol3/git/refs{/sha}","trees_url":"https://api.github.com/repos/openlayers/ol3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openlayers/ol3/statuses/{sha}","languages_url":"https://api.github.com/repos/openlayers/ol3/languages","stargazers_url":"https://api.github.com/repos/openlayers/ol3/stargazers","contributors_url":"https://api.github.com/repos/openlayers/ol3/contributors","subscribers_url":"https://api.github.com/repos/openlayers/ol3/subscribers","subscription_url":"https://api.github.com/repos/openlayers/ol3/subscription","commits_url":"https://api.github.com/repos/openlayers/ol3/commits{/sha}","git_commits_url":"https://api.github.com/repos/openlayers/ol3/git/commits{/sha}","comments_url":"https://api.github.com/repos/openlayers/ol3/comments{/number}","issue_comment_url":"https://api.github.com/repos/openlayers/ol3/issues/comments{/number}","contents_url":"https://api.github.com/repos/openlayers/ol3/contents/{+path}","compare_url":"https://api.github.com/repos/openlayers/ol3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openlayers/ol3/merges","archive_url":"https://api.github.com/repos/openlayers/ol3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openlayers/ol3/downloads","issues_url":"https://api.github.com/repos/openlayers/ol3/issues{/number}","pulls_url":"https://api.github.com/repos/openlayers/ol3/pulls{/number}","milestones_url":"https://api.github.com/repos/openlayers/ol3/milestones{/number}","notifications_url":"https://api.github.com/repos/openlayers/ol3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openlayers/ol3/labels{/name}","releases_url":"https://api.github.com/repos/openlayers/ol3/releases{/id}","created_at":"2012-06-20T06:53:59Z","updated_at":"2015-09-01T03:16:23Z","pushed_at":"2015-09-02T15:36:51Z","git_url":"git://github.com/openlayers/ol3.git","ssh_url":"git@github.com:openlayers/ol3.git","clone_url":"https://github.com/openlayers/ol3.git","svn_url":"https://github.com/openlayers/ol3","homepage":"http://openlayers.org","size":78971,"stargazers_count":1356,"watchers_count":1356,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":785,"mirror_url":null,"open_issues_count":392,"forks":785,"open_issues":392,"watchers":1356,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4069"},"html":{"href":"https://github.com/openlayers/ol3/pull/4069"},"issue":{"href":"https://api.github.com/repos/openlayers/ol3/issues/4069"},"comments":{"href":"https://api.github.com/repos/openlayers/ol3/issues/4069/comments"},"review_comments":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4069/comments"},"review_comment":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4069/commits"},"statuses":{"href":"https://api.github.com/repos/openlayers/ol3/statuses/d85c681a7298565425d29329f4c431b0fb411391"}}}}