{"action":"created","comment":{"url":"https://api.github.com/repos/python-visualization/folium/pulls/comments/30956861","id":30956861,"diff_hunk":"@@ -664,6 +666,31 @@ def fit_bounds(self, bounds, padding_top_left=None,\n         self.template_vars.update({'fit_bounds': fit_bounds_str})\n \n \n+    def _auto_bounds(self):\n+        if 'fit_bounds' in self.template_vars:","path":"folium/folium.py","position":24,"original_position":24,"commit_id":"cfc727690e5afa5060cd2702479fc7abff6373db","original_commit_id":"cfc727690e5afa5060cd2702479fc7abff6373db","user":{"login":"ocefpaf","id":950575,"avatar_url":"https://avatars.githubusercontent.com/u/950575?v=3","gravatar_id":"","url":"https://api.github.com/users/ocefpaf","html_url":"https://github.com/ocefpaf","followers_url":"https://api.github.com/users/ocefpaf/followers","following_url":"https://api.github.com/users/ocefpaf/following{/other_user}","gists_url":"https://api.github.com/users/ocefpaf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocefpaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocefpaf/subscriptions","organizations_url":"https://api.github.com/users/ocefpaf/orgs","repos_url":"https://api.github.com/users/ocefpaf/repos","events_url":"https://api.github.com/users/ocefpaf/events{/privacy}","received_events_url":"https://api.github.com/users/ocefpaf/received_events","type":"User","site_admin":false},"body":"I am wondering if we should add an option here to fit just an specific feature, like markers, instead of everything.\r\n\r\nHere is what got me thinking.  I have an application where I add several markers, lines, etc.  But I want the map to autofit only on the markers (ocean gliders that are moving in time).  That way the user will always get a map centred on them.\r\n\r\nOn the other hand I like to keep things simple and your current implementation is exactly what most users expect from an autofit.\r\n\r\nI am on the fence here. @birdage what do you think?","created_at":"2015-05-24T23:14:18Z","updated_at":"2015-05-24T23:14:18Z","html_url":"https://github.com/python-visualization/folium/pull/134#discussion_r30956861","pull_request_url":"https://api.github.com/repos/python-visualization/folium/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/comments/30956861"},"html":{"href":"https://github.com/python-visualization/folium/pull/134#discussion_r30956861"},"pull_request":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/python-visualization/folium/pulls/134","id":35786827,"html_url":"https://github.com/python-visualization/folium/pull/134","diff_url":"https://github.com/python-visualization/folium/pull/134.diff","patch_url":"https://github.com/python-visualization/folium/pull/134.patch","issue_url":"https://api.github.com/repos/python-visualization/folium/issues/134","number":134,"state":"open","locked":false,"title":"Autobounds","user":{"login":"themiurgo","id":920728,"avatar_url":"https://avatars.githubusercontent.com/u/920728?v=3","gravatar_id":"","url":"https://api.github.com/users/themiurgo","html_url":"https://github.com/themiurgo","followers_url":"https://api.github.com/users/themiurgo/followers","following_url":"https://api.github.com/users/themiurgo/following{/other_user}","gists_url":"https://api.github.com/users/themiurgo/gists{/gist_id}","starred_url":"https://api.github.com/users/themiurgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themiurgo/subscriptions","organizations_url":"https://api.github.com/users/themiurgo/orgs","repos_url":"https://api.github.com/users/themiurgo/repos","events_url":"https://api.github.com/users/themiurgo/events{/privacy}","received_events_url":"https://api.github.com/users/themiurgo/received_events","type":"User","site_admin":false},"body":"This attempts to implement #126 .\r\n\r\nThe PR is far from being ready, but I wanted to put it out so that I can read your suggestions.","created_at":"2015-05-19T23:55:03Z","updated_at":"2015-05-24T23:14:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b642a7058b4d67122328b96ccbf2b802a2d484f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python-visualization/folium/pulls/134/commits","review_comments_url":"https://api.github.com/repos/python-visualization/folium/pulls/134/comments","review_comment_url":"https://api.github.com/repos/python-visualization/folium/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-visualization/folium/issues/134/comments","statuses_url":"https://api.github.com/repos/python-visualization/folium/statuses/cfc727690e5afa5060cd2702479fc7abff6373db","head":{"label":"themiurgo:autobounds","ref":"autobounds","sha":"cfc727690e5afa5060cd2702479fc7abff6373db","user":{"login":"themiurgo","id":920728,"avatar_url":"https://avatars.githubusercontent.com/u/920728?v=3","gravatar_id":"","url":"https://api.github.com/users/themiurgo","html_url":"https://github.com/themiurgo","followers_url":"https://api.github.com/users/themiurgo/followers","following_url":"https://api.github.com/users/themiurgo/following{/other_user}","gists_url":"https://api.github.com/users/themiurgo/gists{/gist_id}","starred_url":"https://api.github.com/users/themiurgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themiurgo/subscriptions","organizations_url":"https://api.github.com/users/themiurgo/orgs","repos_url":"https://api.github.com/users/themiurgo/repos","events_url":"https://api.github.com/users/themiurgo/events{/privacy}","received_events_url":"https://api.github.com/users/themiurgo/received_events","type":"User","site_admin":false},"repo":{"id":30269420,"name":"folium","full_name":"themiurgo/folium","owner":{"login":"themiurgo","id":920728,"avatar_url":"https://avatars.githubusercontent.com/u/920728?v=3","gravatar_id":"","url":"https://api.github.com/users/themiurgo","html_url":"https://github.com/themiurgo","followers_url":"https://api.github.com/users/themiurgo/followers","following_url":"https://api.github.com/users/themiurgo/following{/other_user}","gists_url":"https://api.github.com/users/themiurgo/gists{/gist_id}","starred_url":"https://api.github.com/users/themiurgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themiurgo/subscriptions","organizations_url":"https://api.github.com/users/themiurgo/orgs","repos_url":"https://api.github.com/users/themiurgo/repos","events_url":"https://api.github.com/users/themiurgo/events{/privacy}","received_events_url":"https://api.github.com/users/themiurgo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/themiurgo/folium","description":"Python Data. Leaflet.js Maps. ","fork":true,"url":"https://api.github.com/repos/themiurgo/folium","forks_url":"https://api.github.com/repos/themiurgo/folium/forks","keys_url":"https://api.github.com/repos/themiurgo/folium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/themiurgo/folium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/themiurgo/folium/teams","hooks_url":"https://api.github.com/repos/themiurgo/folium/hooks","issue_events_url":"https://api.github.com/repos/themiurgo/folium/issues/events{/number}","events_url":"https://api.github.com/repos/themiurgo/folium/events","assignees_url":"https://api.github.com/repos/themiurgo/folium/assignees{/user}","branches_url":"https://api.github.com/repos/themiurgo/folium/branches{/branch}","tags_url":"https://api.github.com/repos/themiurgo/folium/tags","blobs_url":"https://api.github.com/repos/themiurgo/folium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/themiurgo/folium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/themiurgo/folium/git/refs{/sha}","trees_url":"https://api.github.com/repos/themiurgo/folium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/themiurgo/folium/statuses/{sha}","languages_url":"https://api.github.com/repos/themiurgo/folium/languages","stargazers_url":"https://api.github.com/repos/themiurgo/folium/stargazers","contributors_url":"https://api.github.com/repos/themiurgo/folium/contributors","subscribers_url":"https://api.github.com/repos/themiurgo/folium/subscribers","subscription_url":"https://api.github.com/repos/themiurgo/folium/subscription","commits_url":"https://api.github.com/repos/themiurgo/folium/commits{/sha}","git_commits_url":"https://api.github.com/repos/themiurgo/folium/git/commits{/sha}","comments_url":"https://api.github.com/repos/themiurgo/folium/comments{/number}","issue_comment_url":"https://api.github.com/repos/themiurgo/folium/issues/comments{/number}","contents_url":"https://api.github.com/repos/themiurgo/folium/contents/{+path}","compare_url":"https://api.github.com/repos/themiurgo/folium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/themiurgo/folium/merges","archive_url":"https://api.github.com/repos/themiurgo/folium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/themiurgo/folium/downloads","issues_url":"https://api.github.com/repos/themiurgo/folium/issues{/number}","pulls_url":"https://api.github.com/repos/themiurgo/folium/pulls{/number}","milestones_url":"https://api.github.com/repos/themiurgo/folium/milestones{/number}","notifications_url":"https://api.github.com/repos/themiurgo/folium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/themiurgo/folium/labels{/name}","releases_url":"https://api.github.com/repos/themiurgo/folium/releases{/id}","created_at":"2015-02-03T23:02:25Z","updated_at":"2015-05-07T20:09:14Z","pushed_at":"2015-05-20T15:24:08Z","git_url":"git://github.com/themiurgo/folium.git","ssh_url":"git@github.com:themiurgo/folium.git","clone_url":"https://github.com/themiurgo/folium.git","svn_url":"https://github.com/themiurgo/folium","homepage":"","size":2864,"stargazers_count":0,"watchers_count":0,"language":"Python","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":0,"default_branch":"master"}},"base":{"label":"python-visualization:master","ref":"master","sha":"204d722d1d4c75ea95abb68dcff25dd1307f0663","user":{"login":"python-visualization","id":9969242,"avatar_url":"https://avatars.githubusercontent.com/u/9969242?v=3","gravatar_id":"","url":"https://api.github.com/users/python-visualization","html_url":"https://github.com/python-visualization","followers_url":"https://api.github.com/users/python-visualization/followers","following_url":"https://api.github.com/users/python-visualization/following{/other_user}","gists_url":"https://api.github.com/users/python-visualization/gists{/gist_id}","starred_url":"https://api.github.com/users/python-visualization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-visualization/subscriptions","organizations_url":"https://api.github.com/users/python-visualization/orgs","repos_url":"https://api.github.com/users/python-visualization/repos","events_url":"https://api.github.com/users/python-visualization/events{/privacy}","received_events_url":"https://api.github.com/users/python-visualization/received_events","type":"Organization","site_admin":false},"repo":{"id":9952134,"name":"folium","full_name":"python-visualization/folium","owner":{"login":"python-visualization","id":9969242,"avatar_url":"https://avatars.githubusercontent.com/u/9969242?v=3","gravatar_id":"","url":"https://api.github.com/users/python-visualization","html_url":"https://github.com/python-visualization","followers_url":"https://api.github.com/users/python-visualization/followers","following_url":"https://api.github.com/users/python-visualization/following{/other_user}","gists_url":"https://api.github.com/users/python-visualization/gists{/gist_id}","starred_url":"https://api.github.com/users/python-visualization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-visualization/subscriptions","organizations_url":"https://api.github.com/users/python-visualization/orgs","repos_url":"https://api.github.com/users/python-visualization/repos","events_url":"https://api.github.com/users/python-visualization/events{/privacy}","received_events_url":"https://api.github.com/users/python-visualization/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-visualization/folium","description":"Python Data. Leaflet.js Maps. ","fork":false,"url":"https://api.github.com/repos/python-visualization/folium","forks_url":"https://api.github.com/repos/python-visualization/folium/forks","keys_url":"https://api.github.com/repos/python-visualization/folium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-visualization/folium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-visualization/folium/teams","hooks_url":"https://api.github.com/repos/python-visualization/folium/hooks","issue_events_url":"https://api.github.com/repos/python-visualization/folium/issues/events{/number}","events_url":"https://api.github.com/repos/python-visualization/folium/events","assignees_url":"https://api.github.com/repos/python-visualization/folium/assignees{/user}","branches_url":"https://api.github.com/repos/python-visualization/folium/branches{/branch}","tags_url":"https://api.github.com/repos/python-visualization/folium/tags","blobs_url":"https://api.github.com/repos/python-visualization/folium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-visualization/folium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-visualization/folium/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-visualization/folium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-visualization/folium/statuses/{sha}","languages_url":"https://api.github.com/repos/python-visualization/folium/languages","stargazers_url":"https://api.github.com/repos/python-visualization/folium/stargazers","contributors_url":"https://api.github.com/repos/python-visualization/folium/contributors","subscribers_url":"https://api.github.com/repos/python-visualization/folium/subscribers","subscription_url":"https://api.github.com/repos/python-visualization/folium/subscription","commits_url":"https://api.github.com/repos/python-visualization/folium/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-visualization/folium/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-visualization/folium/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-visualization/folium/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-visualization/folium/contents/{+path}","compare_url":"https://api.github.com/repos/python-visualization/folium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-visualization/folium/merges","archive_url":"https://api.github.com/repos/python-visualization/folium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-visualization/folium/downloads","issues_url":"https://api.github.com/repos/python-visualization/folium/issues{/number}","pulls_url":"https://api.github.com/repos/python-visualization/folium/pulls{/number}","milestones_url":"https://api.github.com/repos/python-visualization/folium/milestones{/number}","notifications_url":"https://api.github.com/repos/python-visualization/folium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-visualization/folium/labels{/name}","releases_url":"https://api.github.com/repos/python-visualization/folium/releases{/id}","created_at":"2013-05-09T04:21:35Z","updated_at":"2015-05-22T18:10:25Z","pushed_at":"2015-05-20T15:24:09Z","git_url":"git://github.com/python-visualization/folium.git","ssh_url":"git@github.com:python-visualization/folium.git","clone_url":"https://github.com/python-visualization/folium.git","svn_url":"https://github.com/python-visualization/folium","homepage":"","size":3750,"stargazers_count":687,"watchers_count":687,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":31,"forks":93,"open_issues":31,"watchers":687,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/134"},"html":{"href":"https://github.com/python-visualization/folium/pull/134"},"issue":{"href":"https://api.github.com/repos/python-visualization/folium/issues/134"},"comments":{"href":"https://api.github.com/repos/python-visualization/folium/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/python-visualization/folium/statuses/cfc727690e5afa5060cd2702479fc7abff6373db"}}}}