{"action":"created","comment":{"url":"https://api.github.com/repos/geotrellis/gt-admin/pulls/comments/29989153","id":29989153,"diff_hunk":"@@ -94,15 +94,21 @@ object CatalogService extends ArgApp[CatalogArgs] with SimpleRoutingApp with Cor\n                    sys.error(\"NOPE!\")\n                  }\n                }\n-\n+            \n+             var rampOption = \"blue-to-yellow-to-red-heatmap\";  //first ramp in drop down","path":"server/src/main/scala/geotrellis/admin/server/CatalogService.scala","position":15,"original_position":15,"commit_id":"98a0de70a5dcea643a887b75f6763f9cb6659f93","original_commit_id":"98a0de70a5dcea643a887b75f6763f9cb6659f93","user":{"login":"lossyrob","id":2320142,"avatar_url":"https://avatars.githubusercontent.com/u/2320142?v=3","gravatar_id":"","url":"https://api.github.com/users/lossyrob","html_url":"https://github.com/lossyrob","followers_url":"https://api.github.com/users/lossyrob/followers","following_url":"https://api.github.com/users/lossyrob/following{/other_user}","gists_url":"https://api.github.com/users/lossyrob/gists{/gist_id}","starred_url":"https://api.github.com/users/lossyrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lossyrob/subscriptions","organizations_url":"https://api.github.com/users/lossyrob/orgs","repos_url":"https://api.github.com/users/lossyrob/repos","events_url":"https://api.github.com/users/lossyrob/events{/privacy}","received_events_url":"https://api.github.com/users/lossyrob/received_events","type":"User","site_admin":false},"body":"always use `val` in scala unless you really want something mutable","created_at":"2015-05-09T03:27:28Z","updated_at":"2015-05-09T03:27:28Z","html_url":"https://github.com/geotrellis/gt-admin/pull/12#discussion_r29989153","pull_request_url":"https://api.github.com/repos/geotrellis/gt-admin/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/geotrellis/gt-admin/pulls/comments/29989153"},"html":{"href":"https://github.com/geotrellis/gt-admin/pull/12#discussion_r29989153"},"pull_request":{"href":"https://api.github.com/repos/geotrellis/gt-admin/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/geotrellis/gt-admin/pulls/12","id":34594174,"html_url":"https://github.com/geotrellis/gt-admin/pull/12","diff_url":"https://github.com/geotrellis/gt-admin/pull/12.diff","patch_url":"https://github.com/geotrellis/gt-admin/pull/12.patch","issue_url":"https://api.github.com/repos/geotrellis/gt-admin/issues/12","number":12,"state":"open","locked":false,"title":"Added color ramp selection and opacity slider for layers","user":{"login":"ZachSand","id":3947109,"avatar_url":"https://avatars.githubusercontent.com/u/3947109?v=3","gravatar_id":"","url":"https://api.github.com/users/ZachSand","html_url":"https://github.com/ZachSand","followers_url":"https://api.github.com/users/ZachSand/followers","following_url":"https://api.github.com/users/ZachSand/following{/other_user}","gists_url":"https://api.github.com/users/ZachSand/gists{/gist_id}","starred_url":"https://api.github.com/users/ZachSand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZachSand/subscriptions","organizations_url":"https://api.github.com/users/ZachSand/orgs","repos_url":"https://api.github.com/users/ZachSand/repos","events_url":"https://api.github.com/users/ZachSand/events{/privacy}","received_events_url":"https://api.github.com/users/ZachSand/received_events","type":"User","site_admin":false},"body":"I've added a color ramp selector drop down and an opacity slider that respectively updates the current layer. The color ramp appends a string onto the tms url that is parsed before rendering and the opacity slider takes advantage of leaflet's setOpacity function for a layer. \r\n\r\nThe Slider.jsx component, how I see it, is a React wrapper around the [bootstrap-slider](https://github.com/seiyria/bootstrap-slider). There were issues trying to get everything to function correctly with just the native bootstrap slider. Notice, an additional dependency has been added -- the bootstrap slider. \r\n\r\nThe color ramp images were pulled from the admin project and the ColorRampMap was pulled from geotrellis/services.\r\n\r\nKnown (possible) defect of color ramp selector, steps to reproduce: \r\n- Run the server, select a ramp from the dropdown besides the first one, the ramp scale image changes. Press button to select an \"ingested\" layer, the color ramp that is shown for the selected layer is not the same as the color ramp chosen from the drop down and displayed in the scale. This only happens if a color other than the first is selected before any layer has **ever** been rendered. ","created_at":"2015-05-03T00:20:39Z","updated_at":"2015-05-09T03:27:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3984e20fc93c4c45b67013af913e130123df2857","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/geotrellis/gt-admin/pulls/12/commits","review_comments_url":"https://api.github.com/repos/geotrellis/gt-admin/pulls/12/comments","review_comment_url":"https://api.github.com/repos/geotrellis/gt-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geotrellis/gt-admin/issues/12/comments","statuses_url":"https://api.github.com/repos/geotrellis/gt-admin/statuses/98a0de70a5dcea643a887b75f6763f9cb6659f93","head":{"label":"ZachSand:colorRamp","ref":"colorRamp","sha":"98a0de70a5dcea643a887b75f6763f9cb6659f93","user":{"login":"ZachSand","id":3947109,"avatar_url":"https://avatars.githubusercontent.com/u/3947109?v=3","gravatar_id":"","url":"https://api.github.com/users/ZachSand","html_url":"https://github.com/ZachSand","followers_url":"https://api.github.com/users/ZachSand/followers","following_url":"https://api.github.com/users/ZachSand/following{/other_user}","gists_url":"https://api.github.com/users/ZachSand/gists{/gist_id}","starred_url":"https://api.github.com/users/ZachSand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZachSand/subscriptions","organizations_url":"https://api.github.com/users/ZachSand/orgs","repos_url":"https://api.github.com/users/ZachSand/repos","events_url":"https://api.github.com/users/ZachSand/events{/privacy}","received_events_url":"https://api.github.com/users/ZachSand/received_events","type":"User","site_admin":false},"repo":{"id":33834613,"name":"gt-admin","full_name":"ZachSand/gt-admin","owner":{"login":"ZachSand","id":3947109,"avatar_url":"https://avatars.githubusercontent.com/u/3947109?v=3","gravatar_id":"","url":"https://api.github.com/users/ZachSand","html_url":"https://github.com/ZachSand","followers_url":"https://api.github.com/users/ZachSand/followers","following_url":"https://api.github.com/users/ZachSand/following{/other_user}","gists_url":"https://api.github.com/users/ZachSand/gists{/gist_id}","starred_url":"https://api.github.com/users/ZachSand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZachSand/subscriptions","organizations_url":"https://api.github.com/users/ZachSand/orgs","repos_url":"https://api.github.com/users/ZachSand/repos","events_url":"https://api.github.com/users/ZachSand/events{/privacy}","received_events_url":"https://api.github.com/users/ZachSand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZachSand/gt-admin","description":"An administration tool for GeoTrellis-Spark clusters.","fork":true,"url":"https://api.github.com/repos/ZachSand/gt-admin","forks_url":"https://api.github.com/repos/ZachSand/gt-admin/forks","keys_url":"https://api.github.com/repos/ZachSand/gt-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZachSand/gt-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZachSand/gt-admin/teams","hooks_url":"https://api.github.com/repos/ZachSand/gt-admin/hooks","issue_events_url":"https://api.github.com/repos/ZachSand/gt-admin/issues/events{/number}","events_url":"https://api.github.com/repos/ZachSand/gt-admin/events","assignees_url":"https://api.github.com/repos/ZachSand/gt-admin/assignees{/user}","branches_url":"https://api.github.com/repos/ZachSand/gt-admin/branches{/branch}","tags_url":"https://api.github.com/repos/ZachSand/gt-admin/tags","blobs_url":"https://api.github.com/repos/ZachSand/gt-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZachSand/gt-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZachSand/gt-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZachSand/gt-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZachSand/gt-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/ZachSand/gt-admin/languages","stargazers_url":"https://api.github.com/repos/ZachSand/gt-admin/stargazers","contributors_url":"https://api.github.com/repos/ZachSand/gt-admin/contributors","subscribers_url":"https://api.github.com/repos/ZachSand/gt-admin/subscribers","subscription_url":"https://api.github.com/repos/ZachSand/gt-admin/subscription","commits_url":"https://api.github.com/repos/ZachSand/gt-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZachSand/gt-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZachSand/gt-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZachSand/gt-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZachSand/gt-admin/contents/{+path}","compare_url":"https://api.github.com/repos/ZachSand/gt-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZachSand/gt-admin/merges","archive_url":"https://api.github.com/repos/ZachSand/gt-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZachSand/gt-admin/downloads","issues_url":"https://api.github.com/repos/ZachSand/gt-admin/issues{/number}","pulls_url":"https://api.github.com/repos/ZachSand/gt-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/ZachSand/gt-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/ZachSand/gt-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZachSand/gt-admin/labels{/name}","releases_url":"https://api.github.com/repos/ZachSand/gt-admin/releases{/id}","created_at":"2015-04-12T21:29:26Z","updated_at":"2015-04-29T02:35:47Z","pushed_at":"2015-05-08T22:19:59Z","git_url":"git://github.com/ZachSand/gt-admin.git","ssh_url":"git@github.com:ZachSand/gt-admin.git","clone_url":"https://github.com/ZachSand/gt-admin.git","svn_url":"https://github.com/ZachSand/gt-admin","homepage":null,"size":1282,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"geotrellis:master","ref":"master","sha":"310745ace7377248dd3d8ee6ca0a1dbeeddc2317","user":{"login":"geotrellis","id":3129444,"avatar_url":"https://avatars.githubusercontent.com/u/3129444?v=3","gravatar_id":"","url":"https://api.github.com/users/geotrellis","html_url":"https://github.com/geotrellis","followers_url":"https://api.github.com/users/geotrellis/followers","following_url":"https://api.github.com/users/geotrellis/following{/other_user}","gists_url":"https://api.github.com/users/geotrellis/gists{/gist_id}","starred_url":"https://api.github.com/users/geotrellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geotrellis/subscriptions","organizations_url":"https://api.github.com/users/geotrellis/orgs","repos_url":"https://api.github.com/users/geotrellis/repos","events_url":"https://api.github.com/users/geotrellis/events{/privacy}","received_events_url":"https://api.github.com/users/geotrellis/received_events","type":"Organization","site_admin":false},"repo":{"id":31072725,"name":"gt-admin","full_name":"geotrellis/gt-admin","owner":{"login":"geotrellis","id":3129444,"avatar_url":"https://avatars.githubusercontent.com/u/3129444?v=3","gravatar_id":"","url":"https://api.github.com/users/geotrellis","html_url":"https://github.com/geotrellis","followers_url":"https://api.github.com/users/geotrellis/followers","following_url":"https://api.github.com/users/geotrellis/following{/other_user}","gists_url":"https://api.github.com/users/geotrellis/gists{/gist_id}","starred_url":"https://api.github.com/users/geotrellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geotrellis/subscriptions","organizations_url":"https://api.github.com/users/geotrellis/orgs","repos_url":"https://api.github.com/users/geotrellis/repos","events_url":"https://api.github.com/users/geotrellis/events{/privacy}","received_events_url":"https://api.github.com/users/geotrellis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geotrellis/gt-admin","description":"An administration tool for GeoTrellis-Spark clusters.","fork":false,"url":"https://api.github.com/repos/geotrellis/gt-admin","forks_url":"https://api.github.com/repos/geotrellis/gt-admin/forks","keys_url":"https://api.github.com/repos/geotrellis/gt-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geotrellis/gt-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geotrellis/gt-admin/teams","hooks_url":"https://api.github.com/repos/geotrellis/gt-admin/hooks","issue_events_url":"https://api.github.com/repos/geotrellis/gt-admin/issues/events{/number}","events_url":"https://api.github.com/repos/geotrellis/gt-admin/events","assignees_url":"https://api.github.com/repos/geotrellis/gt-admin/assignees{/user}","branches_url":"https://api.github.com/repos/geotrellis/gt-admin/branches{/branch}","tags_url":"https://api.github.com/repos/geotrellis/gt-admin/tags","blobs_url":"https://api.github.com/repos/geotrellis/gt-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geotrellis/gt-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geotrellis/gt-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/geotrellis/gt-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geotrellis/gt-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/geotrellis/gt-admin/languages","stargazers_url":"https://api.github.com/repos/geotrellis/gt-admin/stargazers","contributors_url":"https://api.github.com/repos/geotrellis/gt-admin/contributors","subscribers_url":"https://api.github.com/repos/geotrellis/gt-admin/subscribers","subscription_url":"https://api.github.com/repos/geotrellis/gt-admin/subscription","commits_url":"https://api.github.com/repos/geotrellis/gt-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/geotrellis/gt-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/geotrellis/gt-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/geotrellis/gt-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/geotrellis/gt-admin/contents/{+path}","compare_url":"https://api.github.com/repos/geotrellis/gt-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geotrellis/gt-admin/merges","archive_url":"https://api.github.com/repos/geotrellis/gt-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geotrellis/gt-admin/downloads","issues_url":"https://api.github.com/repos/geotrellis/gt-admin/issues{/number}","pulls_url":"https://api.github.com/repos/geotrellis/gt-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/geotrellis/gt-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/geotrellis/gt-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geotrellis/gt-admin/labels{/name}","releases_url":"https://api.github.com/repos/geotrellis/gt-admin/releases{/id}","created_at":"2015-02-20T16:12:29Z","updated_at":"2015-05-08T16:56:02Z","pushed_at":"2015-05-09T03:23:43Z","git_url":"git://github.com/geotrellis/gt-admin.git","ssh_url":"git@github.com:geotrellis/gt-admin.git","clone_url":"https://github.com/geotrellis/gt-admin.git","svn_url":"https://github.com/geotrellis/gt-admin","homepage":null,"size":1472,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geotrellis/gt-admin/pulls/12"},"html":{"href":"https://github.com/geotrellis/gt-admin/pull/12"},"issue":{"href":"https://api.github.com/repos/geotrellis/gt-admin/issues/12"},"comments":{"href":"https://api.github.com/repos/geotrellis/gt-admin/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/geotrellis/gt-admin/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/geotrellis/gt-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geotrellis/gt-admin/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/geotrellis/gt-admin/statuses/98a0de70a5dcea643a887b75f6763f9cb6659f93"}}}}