{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/pulls/5","id":42941706,"html_url":"https://github.com/MazeMap/Leaflet.ControlledBounds/pull/5","diff_url":"https://github.com/MazeMap/Leaflet.ControlledBounds/pull/5.diff","patch_url":"https://github.com/MazeMap/Leaflet.ControlledBounds/pull/5.patch","issue_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/issues/5","number":5,"state":"open","locked":false,"title":"Take into account global offsets of corners #3","user":{"login":"fab-girard","id":7793233,"avatar_url":"https://avatars.githubusercontent.com/u/7793233?v=3","gravatar_id":"","url":"https://api.github.com/users/fab-girard","html_url":"https://github.com/fab-girard","followers_url":"https://api.github.com/users/fab-girard/followers","following_url":"https://api.github.com/users/fab-girard/following{/other_user}","gists_url":"https://api.github.com/users/fab-girard/gists{/gist_id}","starred_url":"https://api.github.com/users/fab-girard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fab-girard/subscriptions","organizations_url":"https://api.github.com/users/fab-girard/orgs","repos_url":"https://api.github.com/users/fab-girard/repos","events_url":"https://api.github.com/users/fab-girard/events{/privacy}","received_events_url":"https://api.github.com/users/fab-girard/received_events","type":"User","site_admin":false},"body":"As I've asked in #3 issue, it would be better if ControlledBounds takes into account other controls added for instance by other leaflet plugin (I've checked with plugin [leaflet-sidebar](https://github.com/Turbo87/leaflet-sidebar).\r\nWith my modifications, plugin doesn't use anymore size of the map but offsets of corners. Now Leaflet.ControlledBounds is compatible with leaflet-sidebar and I think all controls added by others.\r\n\r\nFabien","created_at":"2015-08-20T15:18:26Z","updated_at":"2015-08-20T15:18:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da648ffb1293a714344554d8b0e62f2e4625a562","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/pulls/5/commits","review_comments_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/pulls/5/comments","review_comment_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/issues/5/comments","statuses_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/statuses/fc473a18f1ab152cdbb64c0270231398074c4b44","head":{"label":"fab-girard:controls","ref":"controls","sha":"fc473a18f1ab152cdbb64c0270231398074c4b44","user":{"login":"fab-girard","id":7793233,"avatar_url":"https://avatars.githubusercontent.com/u/7793233?v=3","gravatar_id":"","url":"https://api.github.com/users/fab-girard","html_url":"https://github.com/fab-girard","followers_url":"https://api.github.com/users/fab-girard/followers","following_url":"https://api.github.com/users/fab-girard/following{/other_user}","gists_url":"https://api.github.com/users/fab-girard/gists{/gist_id}","starred_url":"https://api.github.com/users/fab-girard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fab-girard/subscriptions","organizations_url":"https://api.github.com/users/fab-girard/orgs","repos_url":"https://api.github.com/users/fab-girard/repos","events_url":"https://api.github.com/users/fab-girard/events{/privacy}","received_events_url":"https://api.github.com/users/fab-girard/received_events","type":"User","site_admin":false},"repo":{"id":40963399,"name":"Leaflet.ControlledBounds","full_name":"fab-girard/Leaflet.ControlledBounds","owner":{"login":"fab-girard","id":7793233,"avatar_url":"https://avatars.githubusercontent.com/u/7793233?v=3","gravatar_id":"","url":"https://api.github.com/users/fab-girard","html_url":"https://github.com/fab-girard","followers_url":"https://api.github.com/users/fab-girard/followers","following_url":"https://api.github.com/users/fab-girard/following{/other_user}","gists_url":"https://api.github.com/users/fab-girard/gists{/gist_id}","starred_url":"https://api.github.com/users/fab-girard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fab-girard/subscriptions","organizations_url":"https://api.github.com/users/fab-girard/orgs","repos_url":"https://api.github.com/users/fab-girard/repos","events_url":"https://api.github.com/users/fab-girard/events{/privacy}","received_events_url":"https://api.github.com/users/fab-girard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fab-girard/Leaflet.ControlledBounds","description":"Restricts Leaflet's map bounds to area not covered by any map controls","fork":true,"url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds","forks_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/forks","keys_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/teams","hooks_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/hooks","issue_events_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/issues/events{/number}","events_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/events","assignees_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/assignees{/user}","branches_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/branches{/branch}","tags_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/tags","blobs_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/git/refs{/sha}","trees_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/statuses/{sha}","languages_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/languages","stargazers_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/stargazers","contributors_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/contributors","subscribers_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/subscribers","subscription_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/subscription","commits_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/commits{/sha}","git_commits_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/git/commits{/sha}","comments_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/comments{/number}","issue_comment_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/issues/comments{/number}","contents_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/contents/{+path}","compare_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/merges","archive_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/downloads","issues_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/issues{/number}","pulls_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/pulls{/number}","milestones_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/milestones{/number}","notifications_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/labels{/name}","releases_url":"https://api.github.com/repos/fab-girard/Leaflet.ControlledBounds/releases{/id}","created_at":"2015-08-18T09:36:43Z","updated_at":"2015-08-18T09:36:44Z","pushed_at":"2015-08-20T15:14:14Z","git_url":"git://github.com/fab-girard/Leaflet.ControlledBounds.git","ssh_url":"git@github.com:fab-girard/Leaflet.ControlledBounds.git","clone_url":"https://github.com/fab-girard/Leaflet.ControlledBounds.git","svn_url":"https://github.com/fab-girard/Leaflet.ControlledBounds","homepage":null,"size":109,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MazeMap:master","ref":"master","sha":"dd1f8c7304955d3ca9976910cb37d6883484d8f2","user":{"login":"MazeMap","id":5214860,"avatar_url":"https://avatars.githubusercontent.com/u/5214860?v=3","gravatar_id":"","url":"https://api.github.com/users/MazeMap","html_url":"https://github.com/MazeMap","followers_url":"https://api.github.com/users/MazeMap/followers","following_url":"https://api.github.com/users/MazeMap/following{/other_user}","gists_url":"https://api.github.com/users/MazeMap/gists{/gist_id}","starred_url":"https://api.github.com/users/MazeMap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MazeMap/subscriptions","organizations_url":"https://api.github.com/users/MazeMap/orgs","repos_url":"https://api.github.com/users/MazeMap/repos","events_url":"https://api.github.com/users/MazeMap/events{/privacy}","received_events_url":"https://api.github.com/users/MazeMap/received_events","type":"Organization","site_admin":false},"repo":{"id":35805540,"name":"Leaflet.ControlledBounds","full_name":"MazeMap/Leaflet.ControlledBounds","owner":{"login":"MazeMap","id":5214860,"avatar_url":"https://avatars.githubusercontent.com/u/5214860?v=3","gravatar_id":"","url":"https://api.github.com/users/MazeMap","html_url":"https://github.com/MazeMap","followers_url":"https://api.github.com/users/MazeMap/followers","following_url":"https://api.github.com/users/MazeMap/following{/other_user}","gists_url":"https://api.github.com/users/MazeMap/gists{/gist_id}","starred_url":"https://api.github.com/users/MazeMap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MazeMap/subscriptions","organizations_url":"https://api.github.com/users/MazeMap/orgs","repos_url":"https://api.github.com/users/MazeMap/repos","events_url":"https://api.github.com/users/MazeMap/events{/privacy}","received_events_url":"https://api.github.com/users/MazeMap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MazeMap/Leaflet.ControlledBounds","description":"Restricts Leaflet's map bounds to area not covered by any map controls","fork":false,"url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds","forks_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/forks","keys_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/teams","hooks_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/hooks","issue_events_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/issues/events{/number}","events_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/events","assignees_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/assignees{/user}","branches_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/branches{/branch}","tags_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/tags","blobs_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/git/refs{/sha}","trees_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/statuses/{sha}","languages_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/languages","stargazers_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/stargazers","contributors_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/contributors","subscribers_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/subscribers","subscription_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/subscription","commits_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/commits{/sha}","git_commits_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/git/commits{/sha}","comments_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/comments{/number}","issue_comment_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/issues/comments{/number}","contents_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/contents/{+path}","compare_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/merges","archive_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/downloads","issues_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/issues{/number}","pulls_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/pulls{/number}","milestones_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/milestones{/number}","notifications_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/labels{/name}","releases_url":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/releases{/id}","created_at":"2015-05-18T08:18:25Z","updated_at":"2015-08-13T17:47:41Z","pushed_at":"2015-08-20T15:18:28Z","git_url":"git://github.com/MazeMap/Leaflet.ControlledBounds.git","ssh_url":"git@github.com:MazeMap/Leaflet.ControlledBounds.git","clone_url":"https://github.com/MazeMap/Leaflet.ControlledBounds.git","svn_url":"https://github.com/MazeMap/Leaflet.ControlledBounds","homepage":null,"size":209,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/pulls/5"},"html":{"href":"https://github.com/MazeMap/Leaflet.ControlledBounds/pull/5"},"issue":{"href":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/issues/5"},"comments":{"href":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/MazeMap/Leaflet.ControlledBounds/statuses/fc473a18f1ab152cdbb64c0270231398074c4b44"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":17,"changed_files":1}}