{"action":"created","issue":{"url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/2868","repository_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed","labels_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/2868/labels{/name}","comments_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/2868/comments","events_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/2868/events","html_url":"https://github.com/WikiWatershed/model-my-watershed/pull/2868","id":329247694,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNTUxNjkz","number":2868,"title":"Subbasin: Layer Legend and Opacity","user":{"login":"rajadain","id":1430060,"node_id":"MDQ6VXNlcjE0MzAwNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1430060?v=4","gravatar_id":"","url":"https://api.github.com/users/rajadain","html_url":"https://github.com/rajadain","followers_url":"https://api.github.com/users/rajadain/followers","following_url":"https://api.github.com/users/rajadain/following{/other_user}","gists_url":"https://api.github.com/users/rajadain/gists{/gist_id}","starred_url":"https://api.github.com/users/rajadain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajadain/subscriptions","organizations_url":"https://api.github.com/users/rajadain/orgs","repos_url":"https://api.github.com/users/rajadain/repos","events_url":"https://api.github.com/users/rajadain/events{/privacy}","received_events_url":"https://api.github.com/users/rajadain/received_events","type":"User","site_admin":false},"labels":[{"id":753848470,"node_id":"MDU6TGFiZWw3NTM4NDg0NzA=","url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/labels/Sub-basin%20Modeling","name":"Sub-basin Modeling","color":"84cae0","default":false}],"state":"closed","locked":false,"assignee":{"login":"rajadain","id":1430060,"node_id":"MDQ6VXNlcjE0MzAwNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1430060?v=4","gravatar_id":"","url":"https://api.github.com/users/rajadain","html_url":"https://github.com/rajadain","followers_url":"https://api.github.com/users/rajadain/followers","following_url":"https://api.github.com/users/rajadain/following{/other_user}","gists_url":"https://api.github.com/users/rajadain/gists{/gist_id}","starred_url":"https://api.github.com/users/rajadain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajadain/subscriptions","organizations_url":"https://api.github.com/users/rajadain/orgs","repos_url":"https://api.github.com/users/rajadain/repos","events_url":"https://api.github.com/users/rajadain/events{/privacy}","received_events_url":"https://api.github.com/users/rajadain/received_events","type":"User","site_admin":false},"assignees":[{"login":"rajadain","id":1430060,"node_id":"MDQ6VXNlcjE0MzAwNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1430060?v=4","gravatar_id":"","url":"https://api.github.com/users/rajadain","html_url":"https://github.com/rajadain","followers_url":"https://api.github.com/users/rajadain/followers","following_url":"https://api.github.com/users/rajadain/following{/other_user}","gists_url":"https://api.github.com/users/rajadain/gists{/gist_id}","starred_url":"https://api.github.com/users/rajadain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajadain/subscriptions","organizations_url":"https://api.github.com/users/rajadain/orgs","repos_url":"https://api.github.com/users/rajadain/repos","events_url":"https://api.github.com/users/rajadain/events{/privacy}","received_events_url":"https://api.github.com/users/rajadain/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-06-04T23:09:53Z","updated_at":"2018-06-06T17:56:44Z","closed_at":"2018-06-06T17:56:33Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/2868","html_url":"https://github.com/WikiWatershed/model-my-watershed/pull/2868","diff_url":"https://github.com/WikiWatershed/model-my-watershed/pull/2868.diff","patch_url":"https://github.com/WikiWatershed/model-my-watershed/pull/2868.patch"},"body":"## Overview\r\n\r\nAdds a opacity slider and legend box next to the layer picker for a related subbasin layer when selected.\r\n\r\nConnects #2821 \r\n\r\n### Demo\r\n\r\n![2018-06-04 18 59 52](https://user-images.githubusercontent.com/1430060/40946106-d96214e8-6829-11e8-96ab-239cef40cb0c.gif)\r\n\r\nThere is some lag above because of GIF recording using up the CPU, that is not visible otherwise. Note that the opacity slider adjusts opacity of the catchment fill, not the stream stroke. None of our stroke layers support opacity, so I didn't add them here either. It would be easy to add if we want it though.\r\n\r\nTagging @ajrobbins, @jfrankl for visual review.\r\n\r\n## Testing Instructions\r\n\r\n* Check out this branch and `bundle --debug`\r\n* Go to [:8000/](http://localhost:8000/) and select a HUC-10 and go into subbasin mode\r\n* Ensure the HUC-12 boundaries now use Red instead of the previous Blue for their outline\r\n* Select a HUC-12. Ensure it uses Red instead of the previous Yellow for its outline\r\n* Select a related layer. Ensure its legend and opacity control are shown next to the layer picker.\r\n* Unselect a related layer. Ensure the legend / opacity control go away.\r\n* Select a different related layer. Ensure the legend is properly updated, and that the opacity value persists.\r\n* Turn on a Climate layer, such as Mean Precipitation or Temperature. Ensure the time slider (with the months) is not visible (or rather, hidden behind) the legend / opacity control of a subbasin layer."},"comment":{"url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/comments/395158760","html_url":"https://github.com/WikiWatershed/model-my-watershed/pull/2868#issuecomment-395158760","issue_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/2868","id":395158760,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTE1ODc2MA==","user":{"login":"rajadain","id":1430060,"node_id":"MDQ6VXNlcjE0MzAwNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1430060?v=4","gravatar_id":"","url":"https://api.github.com/users/rajadain","html_url":"https://github.com/rajadain","followers_url":"https://api.github.com/users/rajadain/followers","following_url":"https://api.github.com/users/rajadain/following{/other_user}","gists_url":"https://api.github.com/users/rajadain/gists{/gist_id}","starred_url":"https://api.github.com/users/rajadain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajadain/subscriptions","organizations_url":"https://api.github.com/users/rajadain/orgs","repos_url":"https://api.github.com/users/rajadain/repos","events_url":"https://api.github.com/users/rajadain/events{/privacy}","received_events_url":"https://api.github.com/users/rajadain/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T17:56:44Z","updated_at":"2018-06-06T17:56:44Z","author_association":"MEMBER","body":"Thanks for the feedback, everyone!"}}
{"actor":{"display_login":"rajadain"}}