{"action":"created","comment":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/comments/93972071","pull_request_review_id":14502928,"id":93972071,"diff_hunk":"@@ -0,0 +1,21 @@\n+---\n+layout: example.html\n+title: Hit Tolerance\n+shortdesc: Example of using the hitTolerance parameter.\n+docs: >\n+  Choose the hit tolerance parameter in pixels and try to click on or near the line feature. If the feature gets hit, it is colored green.","path":"examples/hit-tolerance.html","position":6,"original_position":6,"commit_id":"bd459fde340eff92f7bba24a2f933f471997b3de","original_commit_id":"bd459fde340eff92f7bba24a2f933f471997b3de","user":{"login":"tschaub","id":41094,"avatar_url":"https://avatars.githubusercontent.com/u/41094?v=3","gravatar_id":"","url":"https://api.github.com/users/tschaub","html_url":"https://github.com/tschaub","followers_url":"https://api.github.com/users/tschaub/followers","following_url":"https://api.github.com/users/tschaub/following{/other_user}","gists_url":"https://api.github.com/users/tschaub/gists{/gist_id}","starred_url":"https://api.github.com/users/tschaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschaub/subscriptions","organizations_url":"https://api.github.com/users/tschaub/orgs","repos_url":"https://api.github.com/users/tschaub/repos","events_url":"https://api.github.com/users/tschaub/events{/privacy}","received_events_url":"https://api.github.com/users/tschaub/received_events","type":"User","site_admin":false},"body":"Instead of leading with instructions on how to use the example, I think it makes for better documentation if you first describe what feature the example is illustrating.  For example, you could say something like:\r\n\r\n> By default, the `map.forEachFeatureAtPixel()` function only considers features that are directly under the provided pixel.  This can make it difficult to interact with features on touch devices.  To consider features within some distance of the provided pixel, use the `hitTolerance` option.  For example, `map.forEachFeatureAtPixel(pixel, callback, {hitTolerance: 3})` will call the callback with all features that are within three pixels of the provided pixel.\r\n","created_at":"2016-12-27T21:26:39Z","updated_at":"2016-12-27T21:26:39Z","html_url":"https://github.com/openlayers/ol3/pull/6305#discussion_r93972071","pull_request_url":"https://api.github.com/repos/openlayers/ol3/pulls/6305","_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments/93972071"},"html":{"href":"https://github.com/openlayers/ol3/pull/6305#discussion_r93972071"},"pull_request":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/6305"}}},"pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/6305","id":99447270,"html_url":"https://github.com/openlayers/ol3/pull/6305","diff_url":"https://github.com/openlayers/ol3/pull/6305.diff","patch_url":"https://github.com/openlayers/ol3/pull/6305.patch","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/6305","number":6305,"state":"open","locked":false,"title":"Moved hit Tolerance parameter to own example.","user":{"login":"simonseyock","id":8100558,"avatar_url":"https://avatars.githubusercontent.com/u/8100558?v=3","gravatar_id":"","url":"https://api.github.com/users/simonseyock","html_url":"https://github.com/simonseyock","followers_url":"https://api.github.com/users/simonseyock/followers","following_url":"https://api.github.com/users/simonseyock/following{/other_user}","gists_url":"https://api.github.com/users/simonseyock/gists{/gist_id}","starred_url":"https://api.github.com/users/simonseyock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonseyock/subscriptions","organizations_url":"https://api.github.com/users/simonseyock/orgs","repos_url":"https://api.github.com/users/simonseyock/repos","events_url":"https://api.github.com/users/simonseyock/events{/privacy}","received_events_url":"https://api.github.com/users/simonseyock/received_events","type":"User","site_admin":false},"body":"This PR separates the select interaction and hit tolerance examples.","created_at":"2016-12-27T13:57:29Z","updated_at":"2016-12-27T21:26:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15f4a629da4055db6f5f6e9d75103ac696b530d9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openlayers/ol3/pulls/6305/commits","review_comments_url":"https://api.github.com/repos/openlayers/ol3/pulls/6305/comments","review_comment_url":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/6305/comments","statuses_url":"https://api.github.com/repos/openlayers/ol3/statuses/bd459fde340eff92f7bba24a2f933f471997b3de","head":{"label":"KlausBenndorf:hitToleranceExample","ref":"hitToleranceExample","sha":"bd459fde340eff92f7bba24a2f933f471997b3de","user":{"login":"KlausBenndorf","id":18333114,"avatar_url":"https://avatars.githubusercontent.com/u/18333114?v=3","gravatar_id":"","url":"https://api.github.com/users/KlausBenndorf","html_url":"https://github.com/KlausBenndorf","followers_url":"https://api.github.com/users/KlausBenndorf/followers","following_url":"https://api.github.com/users/KlausBenndorf/following{/other_user}","gists_url":"https://api.github.com/users/KlausBenndorf/gists{/gist_id}","starred_url":"https://api.github.com/users/KlausBenndorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KlausBenndorf/subscriptions","organizations_url":"https://api.github.com/users/KlausBenndorf/orgs","repos_url":"https://api.github.com/users/KlausBenndorf/repos","events_url":"https://api.github.com/users/KlausBenndorf/events{/privacy}","received_events_url":"https://api.github.com/users/KlausBenndorf/received_events","type":"Organization","site_admin":false},"repo":{"id":57211010,"name":"ol3","full_name":"KlausBenndorf/ol3","owner":{"login":"KlausBenndorf","id":18333114,"avatar_url":"https://avatars.githubusercontent.com/u/18333114?v=3","gravatar_id":"","url":"https://api.github.com/users/KlausBenndorf","html_url":"https://github.com/KlausBenndorf","followers_url":"https://api.github.com/users/KlausBenndorf/followers","following_url":"https://api.github.com/users/KlausBenndorf/following{/other_user}","gists_url":"https://api.github.com/users/KlausBenndorf/gists{/gist_id}","starred_url":"https://api.github.com/users/KlausBenndorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KlausBenndorf/subscriptions","organizations_url":"https://api.github.com/users/KlausBenndorf/orgs","repos_url":"https://api.github.com/users/KlausBenndorf/repos","events_url":"https://api.github.com/users/KlausBenndorf/events{/privacy}","received_events_url":"https://api.github.com/users/KlausBenndorf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KlausBenndorf/ol3","description":"OpenLayers 3","fork":true,"url":"https://api.github.com/repos/KlausBenndorf/ol3","forks_url":"https://api.github.com/repos/KlausBenndorf/ol3/forks","keys_url":"https://api.github.com/repos/KlausBenndorf/ol3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KlausBenndorf/ol3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KlausBenndorf/ol3/teams","hooks_url":"https://api.github.com/repos/KlausBenndorf/ol3/hooks","issue_events_url":"https://api.github.com/repos/KlausBenndorf/ol3/issues/events{/number}","events_url":"https://api.github.com/repos/KlausBenndorf/ol3/events","assignees_url":"https://api.github.com/repos/KlausBenndorf/ol3/assignees{/user}","branches_url":"https://api.github.com/repos/KlausBenndorf/ol3/branches{/branch}","tags_url":"https://api.github.com/repos/KlausBenndorf/ol3/tags","blobs_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/refs{/sha}","trees_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KlausBenndorf/ol3/statuses/{sha}","languages_url":"https://api.github.com/repos/KlausBenndorf/ol3/languages","stargazers_url":"https://api.github.com/repos/KlausBenndorf/ol3/stargazers","contributors_url":"https://api.github.com/repos/KlausBenndorf/ol3/contributors","subscribers_url":"https://api.github.com/repos/KlausBenndorf/ol3/subscribers","subscription_url":"https://api.github.com/repos/KlausBenndorf/ol3/subscription","commits_url":"https://api.github.com/repos/KlausBenndorf/ol3/commits{/sha}","git_commits_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/commits{/sha}","comments_url":"https://api.github.com/repos/KlausBenndorf/ol3/comments{/number}","issue_comment_url":"https://api.github.com/repos/KlausBenndorf/ol3/issues/comments{/number}","contents_url":"https://api.github.com/repos/KlausBenndorf/ol3/contents/{+path}","compare_url":"https://api.github.com/repos/KlausBenndorf/ol3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KlausBenndorf/ol3/merges","archive_url":"https://api.github.com/repos/KlausBenndorf/ol3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KlausBenndorf/ol3/downloads","issues_url":"https://api.github.com/repos/KlausBenndorf/ol3/issues{/number}","pulls_url":"https://api.github.com/repos/KlausBenndorf/ol3/pulls{/number}","milestones_url":"https://api.github.com/repos/KlausBenndorf/ol3/milestones{/number}","notifications_url":"https://api.github.com/repos/KlausBenndorf/ol3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KlausBenndorf/ol3/labels{/name}","releases_url":"https://api.github.com/repos/KlausBenndorf/ol3/releases{/id}","deployments_url":"https://api.github.com/repos/KlausBenndorf/ol3/deployments","created_at":"2016-04-27T12:17:51Z","updated_at":"2016-11-15T15:59:32Z","pushed_at":"2016-12-27T13:55:00Z","git_url":"git://github.com/KlausBenndorf/ol3.git","ssh_url":"git@github.com:KlausBenndorf/ol3.git","clone_url":"https://github.com/KlausBenndorf/ol3.git","svn_url":"https://github.com/KlausBenndorf/ol3","homepage":"http://openlayers.org","size":60350,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openlayers:master","ref":"master","sha":"ca0b74c8fd11a839a5d5c0b7c968b9592664689b","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}","deployments_url":"https://api.github.com/repos/openlayers/ol3/deployments","created_at":"2012-06-20T06:53:59Z","updated_at":"2016-12-27T05:36:22Z","pushed_at":"2016-12-27T21:19:46Z","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":"https://openlayers.org","size":58832,"stargazers_count":2244,"watchers_count":2244,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1123,"mirror_url":null,"open_issues_count":508,"forks":1123,"open_issues":508,"watchers":2244,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/6305"},"html":{"href":"https://github.com/openlayers/ol3/pull/6305"},"issue":{"href":"https://api.github.com/repos/openlayers/ol3/issues/6305"},"comments":{"href":"https://api.github.com/repos/openlayers/ol3/issues/6305/comments"},"review_comments":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/6305/comments"},"review_comment":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/6305/commits"},"statuses":{"href":"https://api.github.com/repos/openlayers/ol3/statuses/bd459fde340eff92f7bba24a2f933f471997b3de"}}}}
{"actor":{"display_login":"tschaub"}}