{"action":"created","comment":{"url":"https://api.github.com/repos/flexxui/flexx/pulls/comments/224462024","pull_request_review_id":163834400,"id":224462024,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDQ2MjAyNA==","diff_hunk":"@@ -0,0 +1,177 @@\n+from flexx import flx\n+import os\n+\n+BASE_DIR = os.getcwd()\n+\n+with open(BASE_DIR + '/static/js/ol-v4.6.4/ol.css') as f:\n+    ol_css = f.read()\n+\n+with open(BASE_DIR + '/static/js/ol-v4.6.4/ol.js') as f:\n+    ol_js = f.read()\n+\n+flx.assets.associate_asset(__name__, 'ol.css', ol_css)\n+flx.assets.associate_asset(__name__, 'ol.js', ol_js)\n+\n+geojson = '{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-82.08160400390625,23.0548095703125]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-81.31256103515625,22.510986328125]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-80.47210693359375,22.6483154296875]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-80.16448974609375,22.3187255859375]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-81.00494384765625,22.2857666015625]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-81.54876708984375,22.3406982421875]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-82.56500244140625,23.0767822265625]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-82.40570068359375,22.9449462890625]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-82.33428955078125,23.1756591796875]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-82.30682373046875,23.082275390625]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-82.21343994140625,22.9669189453125]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-82.10357666015625,23.192138671875]}}]}'","path":"flexxamples/howtos/openlayers.py","position":15,"original_position":15,"commit_id":"613a06b7dfbbb8e824e5b13b4e08ee68445e14c7","original_commit_id":"613a06b7dfbbb8e824e5b13b4e08ee68445e14c7","user":{"login":"almarklein","id":3015475,"node_id":"MDQ6VXNlcjMwMTU0NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/3015475?v=4","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"body":"This line is too long. This either needs to be written as a multiline string, or perhaps add a ` # noqa` to suppress this style error.","created_at":"2018-10-11T14:08:07Z","updated_at":"2018-10-11T14:08:07Z","html_url":"https://github.com/flexxui/flexx/pull/504#discussion_r224462024","pull_request_url":"https://api.github.com/repos/flexxui/flexx/pulls/504","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/flexxui/flexx/pulls/comments/224462024"},"html":{"href":"https://github.com/flexxui/flexx/pull/504#discussion_r224462024"},"pull_request":{"href":"https://api.github.com/repos/flexxui/flexx/pulls/504"}}},"pull_request":{"url":"https://api.github.com/repos/flexxui/flexx/pulls/504","id":221626535,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNjI2NTM1","html_url":"https://github.com/flexxui/flexx/pull/504","diff_url":"https://github.com/flexxui/flexx/pull/504.diff","patch_url":"https://github.com/flexxui/flexx/pull/504.patch","issue_url":"https://api.github.com/repos/flexxui/flexx/issues/504","number":504,"state":"open","locked":false,"title":"openlayers example","user":{"login":"ocobacho","id":11272299,"node_id":"MDQ6VXNlcjExMjcyMjk5","avatar_url":"https://avatars2.githubusercontent.com/u/11272299?v=4","gravatar_id":"","url":"https://api.github.com/users/ocobacho","html_url":"https://github.com/ocobacho","followers_url":"https://api.github.com/users/ocobacho/followers","following_url":"https://api.github.com/users/ocobacho/following{/other_user}","gists_url":"https://api.github.com/users/ocobacho/gists{/gist_id}","starred_url":"https://api.github.com/users/ocobacho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocobacho/subscriptions","organizations_url":"https://api.github.com/users/ocobacho/orgs","repos_url":"https://api.github.com/users/ocobacho/repos","events_url":"https://api.github.com/users/ocobacho/events{/privacy}","received_events_url":"https://api.github.com/users/ocobacho/received_events","type":"User","site_admin":false},"body":"Openlayers example similar to leaflet example but loading some geojson and also allowing to draw points.","created_at":"2018-10-10T00:34:26Z","updated_at":"2018-10-11T14:08:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f65864b90a79ac79e5f8dd95f7cf531c6cdb94b2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/flexxui/flexx/pulls/504/commits","review_comments_url":"https://api.github.com/repos/flexxui/flexx/pulls/504/comments","review_comment_url":"https://api.github.com/repos/flexxui/flexx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flexxui/flexx/issues/504/comments","statuses_url":"https://api.github.com/repos/flexxui/flexx/statuses/613a06b7dfbbb8e824e5b13b4e08ee68445e14c7","head":{"label":"ocobacho:master","ref":"master","sha":"613a06b7dfbbb8e824e5b13b4e08ee68445e14c7","user":{"login":"ocobacho","id":11272299,"node_id":"MDQ6VXNlcjExMjcyMjk5","avatar_url":"https://avatars2.githubusercontent.com/u/11272299?v=4","gravatar_id":"","url":"https://api.github.com/users/ocobacho","html_url":"https://github.com/ocobacho","followers_url":"https://api.github.com/users/ocobacho/followers","following_url":"https://api.github.com/users/ocobacho/following{/other_user}","gists_url":"https://api.github.com/users/ocobacho/gists{/gist_id}","starred_url":"https://api.github.com/users/ocobacho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocobacho/subscriptions","organizations_url":"https://api.github.com/users/ocobacho/orgs","repos_url":"https://api.github.com/users/ocobacho/repos","events_url":"https://api.github.com/users/ocobacho/events{/privacy}","received_events_url":"https://api.github.com/users/ocobacho/received_events","type":"User","site_admin":false},"repo":{"id":152323264,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzMjMyNjQ=","name":"flexx","full_name":"ocobacho/flexx","private":false,"owner":{"login":"ocobacho","id":11272299,"node_id":"MDQ6VXNlcjExMjcyMjk5","avatar_url":"https://avatars2.githubusercontent.com/u/11272299?v=4","gravatar_id":"","url":"https://api.github.com/users/ocobacho","html_url":"https://github.com/ocobacho","followers_url":"https://api.github.com/users/ocobacho/followers","following_url":"https://api.github.com/users/ocobacho/following{/other_user}","gists_url":"https://api.github.com/users/ocobacho/gists{/gist_id}","starred_url":"https://api.github.com/users/ocobacho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocobacho/subscriptions","organizations_url":"https://api.github.com/users/ocobacho/orgs","repos_url":"https://api.github.com/users/ocobacho/repos","events_url":"https://api.github.com/users/ocobacho/events{/privacy}","received_events_url":"https://api.github.com/users/ocobacho/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ocobacho/flexx","description":"Write desktop and web apps in pure Python","fork":true,"url":"https://api.github.com/repos/ocobacho/flexx","forks_url":"https://api.github.com/repos/ocobacho/flexx/forks","keys_url":"https://api.github.com/repos/ocobacho/flexx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ocobacho/flexx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ocobacho/flexx/teams","hooks_url":"https://api.github.com/repos/ocobacho/flexx/hooks","issue_events_url":"https://api.github.com/repos/ocobacho/flexx/issues/events{/number}","events_url":"https://api.github.com/repos/ocobacho/flexx/events","assignees_url":"https://api.github.com/repos/ocobacho/flexx/assignees{/user}","branches_url":"https://api.github.com/repos/ocobacho/flexx/branches{/branch}","tags_url":"https://api.github.com/repos/ocobacho/flexx/tags","blobs_url":"https://api.github.com/repos/ocobacho/flexx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ocobacho/flexx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ocobacho/flexx/git/refs{/sha}","trees_url":"https://api.github.com/repos/ocobacho/flexx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ocobacho/flexx/statuses/{sha}","languages_url":"https://api.github.com/repos/ocobacho/flexx/languages","stargazers_url":"https://api.github.com/repos/ocobacho/flexx/stargazers","contributors_url":"https://api.github.com/repos/ocobacho/flexx/contributors","subscribers_url":"https://api.github.com/repos/ocobacho/flexx/subscribers","subscription_url":"https://api.github.com/repos/ocobacho/flexx/subscription","commits_url":"https://api.github.com/repos/ocobacho/flexx/commits{/sha}","git_commits_url":"https://api.github.com/repos/ocobacho/flexx/git/commits{/sha}","comments_url":"https://api.github.com/repos/ocobacho/flexx/comments{/number}","issue_comment_url":"https://api.github.com/repos/ocobacho/flexx/issues/comments{/number}","contents_url":"https://api.github.com/repos/ocobacho/flexx/contents/{+path}","compare_url":"https://api.github.com/repos/ocobacho/flexx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ocobacho/flexx/merges","archive_url":"https://api.github.com/repos/ocobacho/flexx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ocobacho/flexx/downloads","issues_url":"https://api.github.com/repos/ocobacho/flexx/issues{/number}","pulls_url":"https://api.github.com/repos/ocobacho/flexx/pulls{/number}","milestones_url":"https://api.github.com/repos/ocobacho/flexx/milestones{/number}","notifications_url":"https://api.github.com/repos/ocobacho/flexx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ocobacho/flexx/labels{/name}","releases_url":"https://api.github.com/repos/ocobacho/flexx/releases{/id}","deployments_url":"https://api.github.com/repos/ocobacho/flexx/deployments","created_at":"2018-10-09T21:23:06Z","updated_at":"2018-10-10T00:29:21Z","pushed_at":"2018-10-10T00:29:19Z","git_url":"git://github.com/ocobacho/flexx.git","ssh_url":"git@github.com:ocobacho/flexx.git","clone_url":"https://github.com/ocobacho/flexx.git","svn_url":"https://github.com/ocobacho/flexx","homepage":"http://flexx.readthedocs.io","size":4463,"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":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"flexxui:master","ref":"master","sha":"1b9ba0c136b2938d27c4d5fa5fcc3bbd01689364","user":{"login":"flexxui","id":8639587,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2Mzk1ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/8639587?v=4","gravatar_id":"","url":"https://api.github.com/users/flexxui","html_url":"https://github.com/flexxui","followers_url":"https://api.github.com/users/flexxui/followers","following_url":"https://api.github.com/users/flexxui/following{/other_user}","gists_url":"https://api.github.com/users/flexxui/gists{/gist_id}","starred_url":"https://api.github.com/users/flexxui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flexxui/subscriptions","organizations_url":"https://api.github.com/users/flexxui/orgs","repos_url":"https://api.github.com/users/flexxui/repos","events_url":"https://api.github.com/users/flexxui/events{/privacy}","received_events_url":"https://api.github.com/users/flexxui/received_events","type":"Organization","site_admin":false},"repo":{"id":23612831,"node_id":"MDEwOlJlcG9zaXRvcnkyMzYxMjgzMQ==","name":"flexx","full_name":"flexxui/flexx","private":false,"owner":{"login":"flexxui","id":8639587,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2Mzk1ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/8639587?v=4","gravatar_id":"","url":"https://api.github.com/users/flexxui","html_url":"https://github.com/flexxui","followers_url":"https://api.github.com/users/flexxui/followers","following_url":"https://api.github.com/users/flexxui/following{/other_user}","gists_url":"https://api.github.com/users/flexxui/gists{/gist_id}","starred_url":"https://api.github.com/users/flexxui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flexxui/subscriptions","organizations_url":"https://api.github.com/users/flexxui/orgs","repos_url":"https://api.github.com/users/flexxui/repos","events_url":"https://api.github.com/users/flexxui/events{/privacy}","received_events_url":"https://api.github.com/users/flexxui/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/flexxui/flexx","description":"Write desktop and web apps in pure Python","fork":false,"url":"https://api.github.com/repos/flexxui/flexx","forks_url":"https://api.github.com/repos/flexxui/flexx/forks","keys_url":"https://api.github.com/repos/flexxui/flexx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flexxui/flexx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flexxui/flexx/teams","hooks_url":"https://api.github.com/repos/flexxui/flexx/hooks","issue_events_url":"https://api.github.com/repos/flexxui/flexx/issues/events{/number}","events_url":"https://api.github.com/repos/flexxui/flexx/events","assignees_url":"https://api.github.com/repos/flexxui/flexx/assignees{/user}","branches_url":"https://api.github.com/repos/flexxui/flexx/branches{/branch}","tags_url":"https://api.github.com/repos/flexxui/flexx/tags","blobs_url":"https://api.github.com/repos/flexxui/flexx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flexxui/flexx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flexxui/flexx/git/refs{/sha}","trees_url":"https://api.github.com/repos/flexxui/flexx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flexxui/flexx/statuses/{sha}","languages_url":"https://api.github.com/repos/flexxui/flexx/languages","stargazers_url":"https://api.github.com/repos/flexxui/flexx/stargazers","contributors_url":"https://api.github.com/repos/flexxui/flexx/contributors","subscribers_url":"https://api.github.com/repos/flexxui/flexx/subscribers","subscription_url":"https://api.github.com/repos/flexxui/flexx/subscription","commits_url":"https://api.github.com/repos/flexxui/flexx/commits{/sha}","git_commits_url":"https://api.github.com/repos/flexxui/flexx/git/commits{/sha}","comments_url":"https://api.github.com/repos/flexxui/flexx/comments{/number}","issue_comment_url":"https://api.github.com/repos/flexxui/flexx/issues/comments{/number}","contents_url":"https://api.github.com/repos/flexxui/flexx/contents/{+path}","compare_url":"https://api.github.com/repos/flexxui/flexx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flexxui/flexx/merges","archive_url":"https://api.github.com/repos/flexxui/flexx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flexxui/flexx/downloads","issues_url":"https://api.github.com/repos/flexxui/flexx/issues{/number}","pulls_url":"https://api.github.com/repos/flexxui/flexx/pulls{/number}","milestones_url":"https://api.github.com/repos/flexxui/flexx/milestones{/number}","notifications_url":"https://api.github.com/repos/flexxui/flexx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flexxui/flexx/labels{/name}","releases_url":"https://api.github.com/repos/flexxui/flexx/releases{/id}","deployments_url":"https://api.github.com/repos/flexxui/flexx/deployments","created_at":"2014-09-03T08:38:00Z","updated_at":"2018-10-10T06:34:58Z","pushed_at":"2018-10-11T14:00:02Z","git_url":"git://github.com/flexxui/flexx.git","ssh_url":"git@github.com:flexxui/flexx.git","clone_url":"https://github.com/flexxui/flexx.git","svn_url":"https://github.com/flexxui/flexx","homepage":"http://flexx.readthedocs.io","size":4305,"stargazers_count":1745,"watchers_count":1745,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":166,"mirror_url":null,"archived":false,"open_issues_count":50,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":166,"open_issues":50,"watchers":1745,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flexxui/flexx/pulls/504"},"html":{"href":"https://github.com/flexxui/flexx/pull/504"},"issue":{"href":"https://api.github.com/repos/flexxui/flexx/issues/504"},"comments":{"href":"https://api.github.com/repos/flexxui/flexx/issues/504/comments"},"review_comments":{"href":"https://api.github.com/repos/flexxui/flexx/pulls/504/comments"},"review_comment":{"href":"https://api.github.com/repos/flexxui/flexx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flexxui/flexx/pulls/504/commits"},"statuses":{"href":"https://api.github.com/repos/flexxui/flexx/statuses/613a06b7dfbbb8e824e5b13b4e08ee68445e14c7"}},"author_association":"NONE"}}
{"actor":{"display_login":"almarklein"}}