{"action":"created","comment":{"url":"https://api.github.com/repos/python-visualization/folium/pulls/comments/237675953","pull_request_review_id":180036514,"id":237675953,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzY3NTk1Mw==","diff_hunk":"@@ -0,0 +1,87 @@\n+# -*- coding: utf-8 -*-\n+\n+from __future__ import (absolute_import, division, print_function)\n+import json\n+\n+from branca.element import Figure, JavascriptLink, MacroElement\n+from jinja2 import Template\n+from folium.raster_layers import TileLayer, WmsTileLayer\n+\n+class SideBySide(MacroElement):\n+    \"\"\"Add a side-by-side control to an existing map.\n+\n+    Uses the Leaflet plugin by Digidem under MIT License.\n+    https://github.com/digidem/leaflet-side-by-side\n+\n+    Parameters\n+    ----------\n+    left_layer : folium TileLayer or WMSTileLayer\n+        A layer to show on the left side of the map. Any layer added to the map \n+        that is here will be shown on the left.\n+    right_layer : folium TileLayer or WMSTileLayer\n+        A layer to show on the right side of the map. Any layer added to the \n+        map that is here will be shown on the right. This should not be the \n+        same as any layer in `left_layers`.\n+    version : str, default None\n+        The version of the javascript library to use. Default value will use \n+        the development version. Valid values are None, 'gh-pages', 'v2.0.0', \n+        'v1.1.1', 'v1.1.0', 'v1.0.2' or 'v1.0.1'.\n+\n+    Examples\n+    --------\n+    >>> m = folium.Map(location=[40, 0], zoom_start=12, tiles='Stamen Terrain')\n+    >>> left_layer = folium.CircleMarker(\n+    ...     location=[40, -1], ","path":"folium/plugins/side_by_side.py","position":34,"original_position":34,"commit_id":"a90f36a8179e37653b552f998338f36999a4e14e","original_commit_id":"a90f36a8179e37653b552f998338f36999a4e14e","user":{"login":"stickler-ci","id":16011037,"node_id":"MDQ6VXNlcjE2MDExMDM3","avatar_url":"https://avatars3.githubusercontent.com/u/16011037?v=4","gravatar_id":"","url":"https://api.github.com/users/stickler-ci","html_url":"https://github.com/stickler-ci","followers_url":"https://api.github.com/users/stickler-ci/followers","following_url":"https://api.github.com/users/stickler-ci/following{/other_user}","gists_url":"https://api.github.com/users/stickler-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/stickler-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stickler-ci/subscriptions","organizations_url":"https://api.github.com/users/stickler-ci/orgs","repos_url":"https://api.github.com/users/stickler-ci/repos","events_url":"https://api.github.com/users/stickler-ci/events{/privacy}","received_events_url":"https://api.github.com/users/stickler-ci/received_events","type":"User","site_admin":false},"body":"W291 trailing whitespace","created_at":"2018-11-29T22:02:06Z","updated_at":"2018-11-29T22:02:09Z","html_url":"https://github.com/python-visualization/folium/pull/1032#discussion_r237675953","pull_request_url":"https://api.github.com/repos/python-visualization/folium/pulls/1032","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/comments/237675953"},"html":{"href":"https://github.com/python-visualization/folium/pull/1032#discussion_r237675953"},"pull_request":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/1032"}}},"pull_request":{"url":"https://api.github.com/repos/python-visualization/folium/pulls/1032","id":234801340,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0ODAxMzQw","html_url":"https://github.com/python-visualization/folium/pull/1032","diff_url":"https://github.com/python-visualization/folium/pull/1032.diff","patch_url":"https://github.com/python-visualization/folium/pull/1032.patch","issue_url":"https://api.github.com/repos/python-visualization/folium/issues/1032","number":1032,"state":"open","locked":false,"title":"Added SideBySide plugin basic funcionality","user":{"login":"kikocorreoso","id":1939575,"node_id":"MDQ6VXNlcjE5Mzk1NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1939575?v=4","gravatar_id":"","url":"https://api.github.com/users/kikocorreoso","html_url":"https://github.com/kikocorreoso","followers_url":"https://api.github.com/users/kikocorreoso/followers","following_url":"https://api.github.com/users/kikocorreoso/following{/other_user}","gists_url":"https://api.github.com/users/kikocorreoso/gists{/gist_id}","starred_url":"https://api.github.com/users/kikocorreoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikocorreoso/subscriptions","organizations_url":"https://api.github.com/users/kikocorreoso/orgs","repos_url":"https://api.github.com/users/kikocorreoso/repos","events_url":"https://api.github.com/users/kikocorreoso/events{/privacy}","received_events_url":"https://api.github.com/users/kikocorreoso/received_events","type":"User","site_admin":false},"body":"This PR adds basic functionality provided by [this Leaflet plugin](https://github.com/digidem/leaflet-side-by-side) similar to the [ipyleaflet's SplitMap control](https://ipyleaflet.readthedocs.io/en/latest/api_reference/split_map_control.html).\r\n\r\nI've added a notebook in the `examples/` directory.\r\n\r\nPlease, let me know if there is something wrong or if the plugin is not an interesting plugin for folium.","created_at":"2018-11-29T22:01:51Z","updated_at":"2018-11-29T22:02:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d5542ad029d491948de84efedb10c640dc2864e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/python-visualization/folium/pulls/1032/commits","review_comments_url":"https://api.github.com/repos/python-visualization/folium/pulls/1032/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/1032/comments","statuses_url":"https://api.github.com/repos/python-visualization/folium/statuses/a90f36a8179e37653b552f998338f36999a4e14e","head":{"label":"kikocorreoso:side_by_side_plugin","ref":"side_by_side_plugin","sha":"a90f36a8179e37653b552f998338f36999a4e14e","user":{"login":"kikocorreoso","id":1939575,"node_id":"MDQ6VXNlcjE5Mzk1NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1939575?v=4","gravatar_id":"","url":"https://api.github.com/users/kikocorreoso","html_url":"https://github.com/kikocorreoso","followers_url":"https://api.github.com/users/kikocorreoso/followers","following_url":"https://api.github.com/users/kikocorreoso/following{/other_user}","gists_url":"https://api.github.com/users/kikocorreoso/gists{/gist_id}","starred_url":"https://api.github.com/users/kikocorreoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikocorreoso/subscriptions","organizations_url":"https://api.github.com/users/kikocorreoso/orgs","repos_url":"https://api.github.com/users/kikocorreoso/repos","events_url":"https://api.github.com/users/kikocorreoso/events{/privacy}","received_events_url":"https://api.github.com/users/kikocorreoso/received_events","type":"User","site_admin":false},"repo":{"id":159530355,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk1MzAzNTU=","name":"folium","full_name":"kikocorreoso/folium","private":false,"owner":{"login":"kikocorreoso","id":1939575,"node_id":"MDQ6VXNlcjE5Mzk1NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1939575?v=4","gravatar_id":"","url":"https://api.github.com/users/kikocorreoso","html_url":"https://github.com/kikocorreoso","followers_url":"https://api.github.com/users/kikocorreoso/followers","following_url":"https://api.github.com/users/kikocorreoso/following{/other_user}","gists_url":"https://api.github.com/users/kikocorreoso/gists{/gist_id}","starred_url":"https://api.github.com/users/kikocorreoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikocorreoso/subscriptions","organizations_url":"https://api.github.com/users/kikocorreoso/orgs","repos_url":"https://api.github.com/users/kikocorreoso/repos","events_url":"https://api.github.com/users/kikocorreoso/events{/privacy}","received_events_url":"https://api.github.com/users/kikocorreoso/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kikocorreoso/folium","description":"Python Data. Leaflet.js Maps. ","fork":true,"url":"https://api.github.com/repos/kikocorreoso/folium","forks_url":"https://api.github.com/repos/kikocorreoso/folium/forks","keys_url":"https://api.github.com/repos/kikocorreoso/folium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kikocorreoso/folium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kikocorreoso/folium/teams","hooks_url":"https://api.github.com/repos/kikocorreoso/folium/hooks","issue_events_url":"https://api.github.com/repos/kikocorreoso/folium/issues/events{/number}","events_url":"https://api.github.com/repos/kikocorreoso/folium/events","assignees_url":"https://api.github.com/repos/kikocorreoso/folium/assignees{/user}","branches_url":"https://api.github.com/repos/kikocorreoso/folium/branches{/branch}","tags_url":"https://api.github.com/repos/kikocorreoso/folium/tags","blobs_url":"https://api.github.com/repos/kikocorreoso/folium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kikocorreoso/folium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kikocorreoso/folium/git/refs{/sha}","trees_url":"https://api.github.com/repos/kikocorreoso/folium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kikocorreoso/folium/statuses/{sha}","languages_url":"https://api.github.com/repos/kikocorreoso/folium/languages","stargazers_url":"https://api.github.com/repos/kikocorreoso/folium/stargazers","contributors_url":"https://api.github.com/repos/kikocorreoso/folium/contributors","subscribers_url":"https://api.github.com/repos/kikocorreoso/folium/subscribers","subscription_url":"https://api.github.com/repos/kikocorreoso/folium/subscription","commits_url":"https://api.github.com/repos/kikocorreoso/folium/commits{/sha}","git_commits_url":"https://api.github.com/repos/kikocorreoso/folium/git/commits{/sha}","comments_url":"https://api.github.com/repos/kikocorreoso/folium/comments{/number}","issue_comment_url":"https://api.github.com/repos/kikocorreoso/folium/issues/comments{/number}","contents_url":"https://api.github.com/repos/kikocorreoso/folium/contents/{+path}","compare_url":"https://api.github.com/repos/kikocorreoso/folium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kikocorreoso/folium/merges","archive_url":"https://api.github.com/repos/kikocorreoso/folium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kikocorreoso/folium/downloads","issues_url":"https://api.github.com/repos/kikocorreoso/folium/issues{/number}","pulls_url":"https://api.github.com/repos/kikocorreoso/folium/pulls{/number}","milestones_url":"https://api.github.com/repos/kikocorreoso/folium/milestones{/number}","notifications_url":"https://api.github.com/repos/kikocorreoso/folium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kikocorreoso/folium/labels{/name}","releases_url":"https://api.github.com/repos/kikocorreoso/folium/releases{/id}","deployments_url":"https://api.github.com/repos/kikocorreoso/folium/deployments","created_at":"2018-11-28T16:17:00Z","updated_at":"2018-11-28T16:17:03Z","pushed_at":"2018-11-29T21:54:41Z","git_url":"git://github.com/kikocorreoso/folium.git","ssh_url":"git@github.com:kikocorreoso/folium.git","clone_url":"https://github.com/kikocorreoso/folium.git","svn_url":"https://github.com/kikocorreoso/folium","homepage":"http://python-visualization.github.io/folium/","size":80547,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python-visualization:master","ref":"master","sha":"7fbf41e73413e9cf02210941037b130e20a61d20","user":{"login":"python-visualization","id":9969242,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5NjkyNDI=","avatar_url":"https://avatars2.githubusercontent.com/u/9969242?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnk5OTUyMTM0","name":"folium","full_name":"python-visualization/folium","private":false,"owner":{"login":"python-visualization","id":9969242,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5NjkyNDI=","avatar_url":"https://avatars2.githubusercontent.com/u/9969242?v=4","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},"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}","deployments_url":"https://api.github.com/repos/python-visualization/folium/deployments","created_at":"2013-05-09T04:21:35Z","updated_at":"2018-11-29T18:20:10Z","pushed_at":"2018-11-29T22:01:52Z","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":"http://python-visualization.github.io/folium/","size":80547,"stargazers_count":3480,"watchers_count":3480,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1012,"mirror_url":null,"archived":false,"open_issues_count":50,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1012,"open_issues":50,"watchers":3480,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/1032"},"html":{"href":"https://github.com/python-visualization/folium/pull/1032"},"issue":{"href":"https://api.github.com/repos/python-visualization/folium/issues/1032"},"comments":{"href":"https://api.github.com/repos/python-visualization/folium/issues/1032/comments"},"review_comments":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/1032/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/1032/commits"},"statuses":{"href":"https://api.github.com/repos/python-visualization/folium/statuses/a90f36a8179e37653b552f998338f36999a4e14e"}},"author_association":"NONE"}}
{"actor":{"display_login":"stickler-ci"}}