{"action":"created","issue":{"url":"https://api.github.com/repos/mbcoder/WorkExperience/issues/6","labels_url":"https://api.github.com/repos/mbcoder/WorkExperience/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/mbcoder/WorkExperience/issues/6/comments","events_url":"https://api.github.com/repos/mbcoder/WorkExperience/issues/6/events","html_url":"https://github.com/mbcoder/WorkExperience/issues/6","id":106303333,"number":6,"title":"Improve same app in github","user":{"login":"yferrera","id":5682175,"avatar_url":"https://avatars.githubusercontent.com/u/5682175?v=3","gravatar_id":"","url":"https://api.github.com/users/yferrera","html_url":"https://github.com/yferrera","followers_url":"https://api.github.com/users/yferrera/followers","following_url":"https://api.github.com/users/yferrera/following{/other_user}","gists_url":"https://api.github.com/users/yferrera/gists{/gist_id}","starred_url":"https://api.github.com/users/yferrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yferrera/subscriptions","organizations_url":"https://api.github.com/users/yferrera/orgs","repos_url":"https://api.github.com/users/yferrera/repos","events_url":"https://api.github.com/users/yferrera/events{/privacy}","received_events_url":"https://api.github.com/users/yferrera/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mbcoder/WorkExperience/labels/A-feature","name":"A-feature","color":"e11d21"},{"url":"https://api.github.com/repos/mbcoder/WorkExperience/labels/B-moderate","name":"B-moderate","color":"006b75"},{"url":"https://api.github.com/repos/mbcoder/WorkExperience/labels/C-S","name":"C-S","color":"009800"},{"url":"https://api.github.com/repos/mbcoder/WorkExperience/labels/G-sample","name":"G-sample","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"Angus15","id":14152226,"avatar_url":"https://avatars.githubusercontent.com/u/14152226?v=3","gravatar_id":"","url":"https://api.github.com/users/Angus15","html_url":"https://github.com/Angus15","followers_url":"https://api.github.com/users/Angus15/followers","following_url":"https://api.github.com/users/Angus15/following{/other_user}","gists_url":"https://api.github.com/users/Angus15/gists{/gist_id}","starred_url":"https://api.github.com/users/Angus15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Angus15/subscriptions","organizations_url":"https://api.github.com/users/Angus15/orgs","repos_url":"https://api.github.com/users/Angus15/repos","events_url":"https://api.github.com/users/Angus15/events{/privacy}","received_events_url":"https://api.github.com/users/Angus15/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mbcoder/WorkExperience/milestones/4","html_url":"https://github.com/mbcoder/WorkExperience/milestones/Thursday","labels_url":"https://api.github.com/repos/mbcoder/WorkExperience/milestones/4/labels","id":1303921,"number":4,"title":"Thursday","description":"","creator":{"login":"yferrera","id":5682175,"avatar_url":"https://avatars.githubusercontent.com/u/5682175?v=3","gravatar_id":"","url":"https://api.github.com/users/yferrera","html_url":"https://github.com/yferrera","followers_url":"https://api.github.com/users/yferrera/followers","following_url":"https://api.github.com/users/yferrera/following{/other_user}","gists_url":"https://api.github.com/users/yferrera/gists{/gist_id}","starred_url":"https://api.github.com/users/yferrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yferrera/subscriptions","organizations_url":"https://api.github.com/users/yferrera/orgs","repos_url":"https://api.github.com/users/yferrera/repos","events_url":"https://api.github.com/users/yferrera/events{/privacy}","received_events_url":"https://api.github.com/users/yferrera/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-09-14T09:07:20Z","updated_at":"2015-09-14T09:24:08Z","due_on":"2015-09-16T23:00:00Z","closed_at":null},"comments":1,"created_at":"2015-09-14T09:23:31Z","updated_at":"2015-09-15T16:43:46Z","closed_at":null,"body":"- [ ] Make a branch\r\n- [ ] Change app to use the map made in AGOL\r\n- [ ] Optional : Add another layer and saves Map\r\n- [ ] Get it code reviewed via a pull request\r\n- [ ] Merge pull request"},"comment":{"url":"https://api.github.com/repos/mbcoder/WorkExperience/issues/comments/140458594","html_url":"https://github.com/mbcoder/WorkExperience/issues/6#issuecomment-140458594","issue_url":"https://api.github.com/repos/mbcoder/WorkExperience/issues/6","id":140458594,"user":{"login":"mbcoder","id":5185225,"avatar_url":"https://avatars.githubusercontent.com/u/5185225?v=3","gravatar_id":"","url":"https://api.github.com/users/mbcoder","html_url":"https://github.com/mbcoder","followers_url":"https://api.github.com/users/mbcoder/followers","following_url":"https://api.github.com/users/mbcoder/following{/other_user}","gists_url":"https://api.github.com/users/mbcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/mbcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbcoder/subscriptions","organizations_url":"https://api.github.com/users/mbcoder/orgs","repos_url":"https://api.github.com/users/mbcoder/repos","events_url":"https://api.github.com/users/mbcoder/events{/privacy}","received_events_url":"https://api.github.com/users/mbcoder/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T16:43:46Z","updated_at":"2015-09-15T16:43:46Z","body":"@Angus15 here is some sample code for wiring up an event to a checkBox:\r\n\r\n```\r\nmyCheckBox.setOnAction((event) -> {\r\n    boolean selected = myCheckBox.isSelected();\r\n    System.out.println(\"CheckBox Action (selected: \" + selected + \")\");\r\n});\r\n```\r\n\r\nThis is what they call a lambda expression.\r\n\r\nSo you will need to find a way of checking the status of the checkbox (isSelected method) and updating the visibility of the operational layer.\r\n\r\nChanging the visibility of the layer could be done like this if you wanted to hide the layer:\r\n```\r\nmap.getOperationalLayers().get(0).setVisible(false);\r\n```"}}