{"action":"created","comment":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/comments/43225087","id":43225087,"diff_hunk":"@@ -0,0 +1,17 @@\n+---\n+template: example.html\n+title: Mapbox vector tiles example","path":"examples/mapbox-vector-tiles-advanced.html","position":3,"original_position":3,"commit_id":"62ffb4164e1ffe38427855cfe850cf2868967594","original_commit_id":"62ffb4164e1ffe38427855cfe850cf2868967594","user":{"login":"bartvde","id":319678,"avatar_url":"https://avatars.githubusercontent.com/u/319678?v=3","gravatar_id":"","url":"https://api.github.com/users/bartvde","html_url":"https://github.com/bartvde","followers_url":"https://api.github.com/users/bartvde/followers","following_url":"https://api.github.com/users/bartvde/following{/other_user}","gists_url":"https://api.github.com/users/bartvde/gists{/gist_id}","starred_url":"https://api.github.com/users/bartvde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartvde/subscriptions","organizations_url":"https://api.github.com/users/bartvde/orgs","repos_url":"https://api.github.com/users/bartvde/repos","events_url":"https://api.github.com/users/bartvde/events{/privacy}","received_events_url":"https://api.github.com/users/bartvde/received_events","type":"User","site_admin":false},"body":"titles of both examples are the same, maybe add advanced here in the title?","created_at":"2015-10-28T07:48:46Z","updated_at":"2015-10-28T07:48:46Z","html_url":"https://github.com/openlayers/ol3/pull/4219#discussion_r43225087","pull_request_url":"https://api.github.com/repos/openlayers/ol3/pulls/4219","_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments/43225087"},"html":{"href":"https://github.com/openlayers/ol3/pull/4219#discussion_r43225087"},"pull_request":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4219"}}},"pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/4219","id":46841031,"html_url":"https://github.com/openlayers/ol3/pull/4219","diff_url":"https://github.com/openlayers/ol3/pull/4219.diff","patch_url":"https://github.com/openlayers/ol3/pull/4219.patch","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/4219","number":4219,"state":"open","locked":false,"title":"Support tiled vector data and Mapbox vector tiles","user":{"login":"ahocevar","id":211514,"avatar_url":"https://avatars.githubusercontent.com/u/211514?v=3","gravatar_id":"","url":"https://api.github.com/users/ahocevar","html_url":"https://github.com/ahocevar","followers_url":"https://api.github.com/users/ahocevar/followers","following_url":"https://api.github.com/users/ahocevar/following{/other_user}","gists_url":"https://api.github.com/users/ahocevar/gists{/gist_id}","starred_url":"https://api.github.com/users/ahocevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahocevar/subscriptions","organizations_url":"https://api.github.com/users/ahocevar/orgs","repos_url":"https://api.github.com/users/ahocevar/repos","events_url":"https://api.github.com/users/ahocevar/events{/privacy}","received_events_url":"https://api.github.com/users/ahocevar/received_events","type":"User","site_admin":false},"body":"This pull request adds support for rendering tiled vector data. The key elements to achieve this are\r\n\r\n1. `ol.layer.VectorTile`. A simple layer to hint renderers that a tiled renderer is to be used, instead of a viewport renderer like for `ol.layer.Vector`.\r\n1. `ol.source.VectorTile` and `ol.VectorTile`. Features are handled by the tile, not the source. Like image tiles, vector tiles can be cached. The existing `ol.source.TileVector` is removed, and its functionality is integrated into `ol.source.VectorTile`. To improve the inheritance chain, `ol.source.UrlTile` was added. Both `ol.source.ImageTile` and `ol.source.VectorTile` inherit common functionality related to url loading from that new class.\r\n1. `ol.renderer.canvas.VectorTileLayer`. This renderer gets tiles from `ol.source.VectorTile`, creates a replay group for each tile, and stores the replay group on the tile for rendering. Tiles are clipped at the tile boundary, so stroked polygons won't have a stroke at the tile boundary when a buffer is used on the server that creates the vector tiles.\r\n\r\nSupport for Mapbox vector tiles is provided by the new `ol.format.MVT` format, which relies on https://www.npmjs.com/package/pbf to read the protobuffers and https://www.npmjs.com/package/vector-tile to parse layers and features. To support pixel relative coordinates,`ol.proj.Units.TILE_PIXELS` was introduced. For efficient feature and geometry creation, a lightweight, read-only `ol.render.Feature` was added, which does not register any event listeners. Another performance improvement was achieved by skipping lineTo/moveTo calls for repeated coordinates when replaying vector batches at a lower resolution than it was created for.","created_at":"2015-10-05T22:13:29Z","updated_at":"2015-10-28T07:48:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4430bb1e37dabb4c8aaa64ec44f7df9aa9a0eb89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openlayers/ol3/pulls/4219/commits","review_comments_url":"https://api.github.com/repos/openlayers/ol3/pulls/4219/comments","review_comment_url":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/4219/comments","statuses_url":"https://api.github.com/repos/openlayers/ol3/statuses/62ffb4164e1ffe38427855cfe850cf2868967594","head":{"label":"ahocevar:vectortile","ref":"vectortile","sha":"62ffb4164e1ffe38427855cfe850cf2868967594","user":{"login":"ahocevar","id":211514,"avatar_url":"https://avatars.githubusercontent.com/u/211514?v=3","gravatar_id":"","url":"https://api.github.com/users/ahocevar","html_url":"https://github.com/ahocevar","followers_url":"https://api.github.com/users/ahocevar/followers","following_url":"https://api.github.com/users/ahocevar/following{/other_user}","gists_url":"https://api.github.com/users/ahocevar/gists{/gist_id}","starred_url":"https://api.github.com/users/ahocevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahocevar/subscriptions","organizations_url":"https://api.github.com/users/ahocevar/orgs","repos_url":"https://api.github.com/users/ahocevar/repos","events_url":"https://api.github.com/users/ahocevar/events{/privacy}","received_events_url":"https://api.github.com/users/ahocevar/received_events","type":"User","site_admin":false},"repo":{"id":4974939,"name":"ol3","full_name":"ahocevar/ol3","owner":{"login":"ahocevar","id":211514,"avatar_url":"https://avatars.githubusercontent.com/u/211514?v=3","gravatar_id":"","url":"https://api.github.com/users/ahocevar","html_url":"https://github.com/ahocevar","followers_url":"https://api.github.com/users/ahocevar/followers","following_url":"https://api.github.com/users/ahocevar/following{/other_user}","gists_url":"https://api.github.com/users/ahocevar/gists{/gist_id}","starred_url":"https://api.github.com/users/ahocevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahocevar/subscriptions","organizations_url":"https://api.github.com/users/ahocevar/orgs","repos_url":"https://api.github.com/users/ahocevar/repos","events_url":"https://api.github.com/users/ahocevar/events{/privacy}","received_events_url":"https://api.github.com/users/ahocevar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahocevar/ol3","description":"OpenLayers 3","fork":true,"url":"https://api.github.com/repos/ahocevar/ol3","forks_url":"https://api.github.com/repos/ahocevar/ol3/forks","keys_url":"https://api.github.com/repos/ahocevar/ol3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahocevar/ol3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahocevar/ol3/teams","hooks_url":"https://api.github.com/repos/ahocevar/ol3/hooks","issue_events_url":"https://api.github.com/repos/ahocevar/ol3/issues/events{/number}","events_url":"https://api.github.com/repos/ahocevar/ol3/events","assignees_url":"https://api.github.com/repos/ahocevar/ol3/assignees{/user}","branches_url":"https://api.github.com/repos/ahocevar/ol3/branches{/branch}","tags_url":"https://api.github.com/repos/ahocevar/ol3/tags","blobs_url":"https://api.github.com/repos/ahocevar/ol3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahocevar/ol3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahocevar/ol3/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahocevar/ol3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahocevar/ol3/statuses/{sha}","languages_url":"https://api.github.com/repos/ahocevar/ol3/languages","stargazers_url":"https://api.github.com/repos/ahocevar/ol3/stargazers","contributors_url":"https://api.github.com/repos/ahocevar/ol3/contributors","subscribers_url":"https://api.github.com/repos/ahocevar/ol3/subscribers","subscription_url":"https://api.github.com/repos/ahocevar/ol3/subscription","commits_url":"https://api.github.com/repos/ahocevar/ol3/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahocevar/ol3/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahocevar/ol3/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahocevar/ol3/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahocevar/ol3/contents/{+path}","compare_url":"https://api.github.com/repos/ahocevar/ol3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahocevar/ol3/merges","archive_url":"https://api.github.com/repos/ahocevar/ol3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahocevar/ol3/downloads","issues_url":"https://api.github.com/repos/ahocevar/ol3/issues{/number}","pulls_url":"https://api.github.com/repos/ahocevar/ol3/pulls{/number}","milestones_url":"https://api.github.com/repos/ahocevar/ol3/milestones{/number}","notifications_url":"https://api.github.com/repos/ahocevar/ol3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahocevar/ol3/labels{/name}","releases_url":"https://api.github.com/repos/ahocevar/ol3/releases{/id}","created_at":"2012-07-10T14:11:39Z","updated_at":"2015-04-21T14:20:28Z","pushed_at":"2015-10-28T07:10:56Z","git_url":"git://github.com/ahocevar/ol3.git","ssh_url":"git@github.com:ahocevar/ol3.git","clone_url":"https://github.com/ahocevar/ol3.git","svn_url":"https://github.com/ahocevar/ol3","homepage":null,"size":57057,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"dist-css"}},"base":{"label":"openlayers:master","ref":"master","sha":"05dfc226b788e5cad75264d3e1b317fcc8a1f87c","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-10-28T02:25:59Z","pushed_at":"2015-10-28T07:10:58Z","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":103508,"stargazers_count":1450,"watchers_count":1450,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":826,"mirror_url":null,"open_issues_count":379,"forks":826,"open_issues":379,"watchers":1450,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4219"},"html":{"href":"https://github.com/openlayers/ol3/pull/4219"},"issue":{"href":"https://api.github.com/repos/openlayers/ol3/issues/4219"},"comments":{"href":"https://api.github.com/repos/openlayers/ol3/issues/4219/comments"},"review_comments":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4219/comments"},"review_comment":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4219/commits"},"statuses":{"href":"https://api.github.com/repos/openlayers/ol3/statuses/62ffb4164e1ffe38427855cfe850cf2868967594"}}}}