{"action":"created","comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/comments/68977754","id":68977754,"diff_hunk":"@@ -0,0 +1,11 @@\n+module.exports = function(ctx) {\n+  return {\n+    stop: function() {\n+      ctx.map.doubleClickZoom.enable();","path":"src/modes/static.js","position":4,"original_position":4,"commit_id":"58480f05f265e62c44eef98d6d8edba84712792f","original_commit_id":"58480f05f265e62c44eef98d6d8edba84712792f","user":{"login":"davidtheclark","id":628431,"avatar_url":"https://avatars.githubusercontent.com/u/628431?v=3","gravatar_id":"","url":"https://api.github.com/users/davidtheclark","html_url":"https://github.com/davidtheclark","followers_url":"https://api.github.com/users/davidtheclark/followers","following_url":"https://api.github.com/users/davidtheclark/following{/other_user}","gists_url":"https://api.github.com/users/davidtheclark/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtheclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtheclark/subscriptions","organizations_url":"https://api.github.com/users/davidtheclark/orgs","repos_url":"https://api.github.com/users/davidtheclark/repos","events_url":"https://api.github.com/users/davidtheclark/events{/privacy}","received_events_url":"https://api.github.com/users/davidtheclark/received_events","type":"User","site_admin":false},"body":"This can use the `doubleClickZoom` lib function: https://github.com/mapbox/mapbox-gl-draw/blob/master/src/lib/double_click_zoom.js","created_at":"2016-06-29T16:13:21Z","updated_at":"2016-06-29T16:13:21Z","html_url":"https://github.com/mapbox/mapbox-gl-draw/pull/435#discussion_r68977754","pull_request_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/435","_links":{"self":{"href":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/comments/68977754"},"html":{"href":"https://github.com/mapbox/mapbox-gl-draw/pull/435#discussion_r68977754"},"pull_request":{"href":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/435"}}},"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/435","id":75647118,"html_url":"https://github.com/mapbox/mapbox-gl-draw/pull/435","diff_url":"https://github.com/mapbox/mapbox-gl-draw/pull/435.diff","patch_url":"https://github.com/mapbox/mapbox-gl-draw/pull/435.patch","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/435","number":435,"state":"open","locked":false,"title":"[WIP] Add static mode","user":{"login":"drewbo","id":7108211,"avatar_url":"https://avatars.githubusercontent.com/u/7108211?v=3","gravatar_id":"","url":"https://api.github.com/users/drewbo","html_url":"https://github.com/drewbo","followers_url":"https://api.github.com/users/drewbo/followers","following_url":"https://api.github.com/users/drewbo/following{/other_user}","gists_url":"https://api.github.com/users/drewbo/gists{/gist_id}","starred_url":"https://api.github.com/users/drewbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewbo/subscriptions","organizations_url":"https://api.github.com/users/drewbo/orgs","repos_url":"https://api.github.com/users/drewbo/repos","events_url":"https://api.github.com/users/drewbo/events{/privacy}","received_events_url":"https://api.github.com/users/drewbo/received_events","type":"User","site_admin":false},"body":"Ref #109 cc: @mcwhittemore \r\n\r\nHappy to make any adjustments to make this more resilient, can add a few tests too","created_at":"2016-06-29T13:24:47Z","updated_at":"2016-06-29T16:13:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b275906aba536d2917bb02aa1929bef88b15a09","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/435/commits","review_comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/435/comments","review_comment_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/435/comments","statuses_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/statuses/58480f05f265e62c44eef98d6d8edba84712792f","head":{"label":"drewbo:static","ref":"static","sha":"58480f05f265e62c44eef98d6d8edba84712792f","user":{"login":"drewbo","id":7108211,"avatar_url":"https://avatars.githubusercontent.com/u/7108211?v=3","gravatar_id":"","url":"https://api.github.com/users/drewbo","html_url":"https://github.com/drewbo","followers_url":"https://api.github.com/users/drewbo/followers","following_url":"https://api.github.com/users/drewbo/following{/other_user}","gists_url":"https://api.github.com/users/drewbo/gists{/gist_id}","starred_url":"https://api.github.com/users/drewbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewbo/subscriptions","organizations_url":"https://api.github.com/users/drewbo/orgs","repos_url":"https://api.github.com/users/drewbo/repos","events_url":"https://api.github.com/users/drewbo/events{/privacy}","received_events_url":"https://api.github.com/users/drewbo/received_events","type":"User","site_admin":false},"repo":{"id":47420600,"name":"mapbox-gl-draw","full_name":"drewbo/mapbox-gl-draw","owner":{"login":"drewbo","id":7108211,"avatar_url":"https://avatars.githubusercontent.com/u/7108211?v=3","gravatar_id":"","url":"https://api.github.com/users/drewbo","html_url":"https://github.com/drewbo","followers_url":"https://api.github.com/users/drewbo/followers","following_url":"https://api.github.com/users/drewbo/following{/other_user}","gists_url":"https://api.github.com/users/drewbo/gists{/gist_id}","starred_url":"https://api.github.com/users/drewbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewbo/subscriptions","organizations_url":"https://api.github.com/users/drewbo/orgs","repos_url":"https://api.github.com/users/drewbo/repos","events_url":"https://api.github.com/users/drewbo/events{/privacy}","received_events_url":"https://api.github.com/users/drewbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drewbo/mapbox-gl-draw","description":"Draw tools for mapbox-gl-js","fork":true,"url":"https://api.github.com/repos/drewbo/mapbox-gl-draw","forks_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/forks","keys_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/teams","hooks_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/hooks","issue_events_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/issues/events{/number}","events_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/events","assignees_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/assignees{/user}","branches_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/branches{/branch}","tags_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/tags","blobs_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/git/refs{/sha}","trees_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/statuses/{sha}","languages_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/languages","stargazers_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/stargazers","contributors_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/contributors","subscribers_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/subscribers","subscription_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/subscription","commits_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/commits{/sha}","git_commits_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/git/commits{/sha}","comments_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/comments{/number}","issue_comment_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/issues/comments{/number}","contents_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/contents/{+path}","compare_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/merges","archive_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/downloads","issues_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/issues{/number}","pulls_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/pulls{/number}","milestones_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/milestones{/number}","notifications_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/labels{/name}","releases_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/releases{/id}","deployments_url":"https://api.github.com/repos/drewbo/mapbox-gl-draw/deployments","created_at":"2015-12-04T17:59:54Z","updated_at":"2016-02-10T15:03:34Z","pushed_at":"2016-06-29T15:02:48Z","git_url":"git://github.com/drewbo/mapbox-gl-draw.git","ssh_url":"git@github.com:drewbo/mapbox-gl-draw.git","clone_url":"https://github.com/drewbo/mapbox-gl-draw.git","svn_url":"https://github.com/drewbo/mapbox-gl-draw","homepage":"","size":3817,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mapbox:master","ref":"master","sha":"4d1ef76dc12135301bc21164d9f9f36be1762b77","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":29943859,"name":"mapbox-gl-draw","full_name":"mapbox/mapbox-gl-draw","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/mapbox-gl-draw","description":"Draw tools for mapbox-gl-js","fork":false,"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw","forks_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/forks","keys_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/teams","hooks_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/hooks","issue_events_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/events","assignees_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/tags","blobs_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/languages","stargazers_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/stargazers","contributors_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/contributors","subscribers_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/subscribers","subscription_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/subscription","commits_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/merges","archive_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/downloads","issues_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/releases{/id}","deployments_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/deployments","created_at":"2015-01-28T01:12:21Z","updated_at":"2016-06-27T23:57:27Z","pushed_at":"2016-06-29T15:02:48Z","git_url":"git://github.com/mapbox/mapbox-gl-draw.git","ssh_url":"git@github.com:mapbox/mapbox-gl-draw.git","clone_url":"https://github.com/mapbox/mapbox-gl-draw.git","svn_url":"https://github.com/mapbox/mapbox-gl-draw","homepage":"","size":4243,"stargazers_count":57,"watchers_count":57,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":27,"forks":19,"open_issues":27,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/435"},"html":{"href":"https://github.com/mapbox/mapbox-gl-draw/pull/435"},"issue":{"href":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/435"},"comments":{"href":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/435/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/435/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapbox/mapbox-gl-draw/pulls/435/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/mapbox-gl-draw/statuses/58480f05f265e62c44eef98d6d8edba84712792f"}}}}
{"actor":{"display_login":"davidtheclark"}}