{"action":"created","comment":{"url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments/89291700","pull_request_review_id":9837277,"id":89291700,"diff_hunk":"@@ -331,27 +396,38 @@ window.SpeedLimitLayer = function(params) {\n       onCancel: cancelSelection,\n       onSave: function(newSpeedLimit) {\n         selectedSpeedLimit.saveMultiple(newSpeedLimit);\n-        activateBrowseStyle();\n+        activateStyles();\n         selectedSpeedLimit.closeMultiple();\n       }\n     });\n   });\n \n   function cancelSelection() {\n     selectedSpeedLimit.closeMultiple();\n-    activateBrowseStyle();\n+    activateStyles();\n     collection.fetch(map.getExtent());\n   }\n \n-  var handleSpeedLimitUnSelected = function(selection) {\n-    _.each(_.filter(vectorLayer.features, function(feature) {\n+  var handleSpeedLimitUnSelected = function (selection, showHistorySpeedLimits) {\n+    var vectorLayerToUse;\n+    var styleMapToUse;\n+\n+    if ((typeof showHistorySpeedLimits != 'undefined') && showHistorySpeedLimits === 'true') {","path":"UI/src/view/SpeedLimitLayer.js","position":124,"original_position":124,"commit_id":"ec2e89f544a0b0452a19e87a0585b397abdbfee5","original_commit_id":"ec2e89f544a0b0452a19e87a0585b397abdbfee5","user":{"login":"leirasf","id":15817485,"avatar_url":"https://avatars.githubusercontent.com/u/15817485?v=3","gravatar_id":"","url":"https://api.github.com/users/leirasf","html_url":"https://github.com/leirasf","followers_url":"https://api.github.com/users/leirasf/followers","following_url":"https://api.github.com/users/leirasf/following{/other_user}","gists_url":"https://api.github.com/users/leirasf/gists{/gist_id}","starred_url":"https://api.github.com/users/leirasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leirasf/subscriptions","organizations_url":"https://api.github.com/users/leirasf/orgs","repos_url":"https://api.github.com/users/leirasf/repos","events_url":"https://api.github.com/users/leirasf/events{/privacy}","received_events_url":"https://api.github.com/users/leirasf/received_events","type":"User","site_admin":false},"body":"It seems like this if will be always undefined","created_at":"2016-11-23T10:47:32Z","updated_at":"2016-11-23T10:47:32Z","html_url":"https://github.com/finnishtransportagency/digiroad2/pull/591#discussion_r89291700","pull_request_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/591","_links":{"self":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments/89291700"},"html":{"href":"https://github.com/finnishtransportagency/digiroad2/pull/591#discussion_r89291700"},"pull_request":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/591"}}},"pull_request":{"url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/591","id":94827357,"html_url":"https://github.com/finnishtransportagency/digiroad2/pull/591","diff_url":"https://github.com/finnishtransportagency/digiroad2/pull/591.diff","patch_url":"https://github.com/finnishtransportagency/digiroad2/pull/591.patch","issue_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/591","number":591,"state":"open","locked":false,"title":"Droth 10 history data visualization","user":{"login":"marquesfm","id":18345906,"avatar_url":"https://avatars.githubusercontent.com/u/18345906?v=3","gravatar_id":"","url":"https://api.github.com/users/marquesfm","html_url":"https://github.com/marquesfm","followers_url":"https://api.github.com/users/marquesfm/followers","following_url":"https://api.github.com/users/marquesfm/following{/other_user}","gists_url":"https://api.github.com/users/marquesfm/gists{/gist_id}","starred_url":"https://api.github.com/users/marquesfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marquesfm/subscriptions","organizations_url":"https://api.github.com/users/marquesfm/orgs","repos_url":"https://api.github.com/users/marquesfm/repos","events_url":"https://api.github.com/users/marquesfm/events{/privacy}","received_events_url":"https://api.github.com/users/marquesfm/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-22T14:45:00Z","updated_at":"2016-11-23T10:47:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/591/commits","review_comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/591/comments","review_comment_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/591/comments","statuses_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/ec2e89f544a0b0452a19e87a0585b397abdbfee5","head":{"label":"finnishtransportagency:DROTH-10_history_data_visualization","ref":"DROTH-10_history_data_visualization","sha":"ec2e89f544a0b0452a19e87a0585b397abdbfee5","user":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"repo":{"id":13739672,"name":"digiroad2","full_name":"finnishtransportagency/digiroad2","owner":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/finnishtransportagency/digiroad2","description":"Digiroad 2 development","fork":false,"url":"https://api.github.com/repos/finnishtransportagency/digiroad2","forks_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/forks","keys_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/teams","hooks_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/hooks","issue_events_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/events{/number}","events_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/events","assignees_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/assignees{/user}","branches_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/branches{/branch}","tags_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/tags","blobs_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/{sha}","languages_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/languages","stargazers_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/stargazers","contributors_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/contributors","subscribers_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/subscribers","subscription_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/subscription","commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/contents/{+path}","compare_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/merges","archive_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/downloads","issues_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues{/number}","pulls_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls{/number}","milestones_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/milestones{/number}","notifications_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/labels{/name}","releases_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/releases{/id}","deployments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/deployments","created_at":"2013-10-21T10:47:36Z","updated_at":"2016-11-15T10:55:26Z","pushed_at":"2016-11-23T09:00:44Z","git_url":"git://github.com/finnishtransportagency/digiroad2.git","ssh_url":"git@github.com:finnishtransportagency/digiroad2.git","clone_url":"https://github.com/finnishtransportagency/digiroad2.git","svn_url":"https://github.com/finnishtransportagency/digiroad2","homepage":"","size":234222,"stargazers_count":7,"watchers_count":7,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":7,"default_branch":"master"}},"base":{"label":"finnishtransportagency:master","ref":"master","sha":"2e00411635dbde597f4b96b524681b9b4b378688","user":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"repo":{"id":13739672,"name":"digiroad2","full_name":"finnishtransportagency/digiroad2","owner":{"login":"finnishtransportagency","id":5737015,"avatar_url":"https://avatars.githubusercontent.com/u/5737015?v=3","gravatar_id":"","url":"https://api.github.com/users/finnishtransportagency","html_url":"https://github.com/finnishtransportagency","followers_url":"https://api.github.com/users/finnishtransportagency/followers","following_url":"https://api.github.com/users/finnishtransportagency/following{/other_user}","gists_url":"https://api.github.com/users/finnishtransportagency/gists{/gist_id}","starred_url":"https://api.github.com/users/finnishtransportagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finnishtransportagency/subscriptions","organizations_url":"https://api.github.com/users/finnishtransportagency/orgs","repos_url":"https://api.github.com/users/finnishtransportagency/repos","events_url":"https://api.github.com/users/finnishtransportagency/events{/privacy}","received_events_url":"https://api.github.com/users/finnishtransportagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/finnishtransportagency/digiroad2","description":"Digiroad 2 development","fork":false,"url":"https://api.github.com/repos/finnishtransportagency/digiroad2","forks_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/forks","keys_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/teams","hooks_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/hooks","issue_events_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/events{/number}","events_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/events","assignees_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/assignees{/user}","branches_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/branches{/branch}","tags_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/tags","blobs_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/refs{/sha}","trees_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/{sha}","languages_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/languages","stargazers_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/stargazers","contributors_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/contributors","subscribers_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/subscribers","subscription_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/subscription","commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/commits{/sha}","git_commits_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/git/commits{/sha}","comments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/comments{/number}","issue_comment_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/comments{/number}","contents_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/contents/{+path}","compare_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/merges","archive_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/downloads","issues_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues{/number}","pulls_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls{/number}","milestones_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/milestones{/number}","notifications_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/labels{/name}","releases_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/releases{/id}","deployments_url":"https://api.github.com/repos/finnishtransportagency/digiroad2/deployments","created_at":"2013-10-21T10:47:36Z","updated_at":"2016-11-15T10:55:26Z","pushed_at":"2016-11-23T09:00:44Z","git_url":"git://github.com/finnishtransportagency/digiroad2.git","ssh_url":"git@github.com:finnishtransportagency/digiroad2.git","clone_url":"https://github.com/finnishtransportagency/digiroad2.git","svn_url":"https://github.com/finnishtransportagency/digiroad2","homepage":"","size":234222,"stargazers_count":7,"watchers_count":7,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/591"},"html":{"href":"https://github.com/finnishtransportagency/digiroad2/pull/591"},"issue":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/591"},"comments":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/issues/591/comments"},"review_comments":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/591/comments"},"review_comment":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/pulls/591/commits"},"statuses":{"href":"https://api.github.com/repos/finnishtransportagency/digiroad2/statuses/ec2e89f544a0b0452a19e87a0585b397abdbfee5"}}}}
{"actor":{"display_login":"leirasf"}}