{"action":"created","comment":{"url":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/comments/182155690","pull_request_review_id":112906157,"id":182155690,"diff_hunk":"@@ -0,0 +1,110 @@\n+package com.mapbox.mapboxandroiddemo.examples.styles;\n+\n+import android.graphics.Color;\n+import android.os.Bundle;\n+import android.support.v7.app.AppCompatActivity;\n+\n+import com.mapbox.mapboxandroiddemo.R;\n+import com.mapbox.mapboxsdk.Mapbox;\n+import com.mapbox.mapboxsdk.maps.MapView;\n+import com.mapbox.mapboxsdk.maps.MapboxMap;\n+import com.mapbox.mapboxsdk.maps.OnMapReadyCallback;\n+import com.mapbox.mapboxsdk.style.layers.HillshadeLayer;\n+import com.mapbox.mapboxsdk.style.sources.RasterDemSource;\n+\n+import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.hillshadeHighlightColor;\n+import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.hillshadeShadowColor;\n+\n+/**\n+ * Use terrain data to show hills and use runtime styling to style the hill shading.\n+ */\n+public class HillShadeActivity extends AppCompatActivity implements\n+  OnMapReadyCallback, MapboxMap.OnCameraIdleListener {\n+\n+  private MapView mapView;\n+  private static final String LAYER_ID = \"hillshade-layer\";\n+  private static final String LAYER_BELOW_ID = \"waterway-river-canal-shadow\";\n+  private static final String SOURCE_ID = \"hillshade-source\";\n+  private static final String SOURCE_URL = \"mapbox://mapbox.terrain-rgb\";\n+  private static final String HILLSHADE_HIGHLIGHT_COLOR = \"#008924\";\n+\n+  @Override\n+  protected void onCreate(Bundle savedInstanceState) {\n+    super.onCreate(savedInstanceState);\n+\n+    // Mapbox access token is configured here. This needs to be called either in your application\n+    // object or in the same activity which contains the mapview.\n+    Mapbox.getInstance(this, getString(R.string.access_token));\n+\n+    // This contains the MapView in XML and needs to be called after the access token is configured.\n+    setContentView(R.layout.activity_style_hillshade);\n+\n+    mapView = findViewById(R.id.mapView);\n+    mapView.onCreate(savedInstanceState);\n+    mapView.getMapAsync(this);\n+  }\n+\n+  @Override\n+  public void onMapReady(MapboxMap mapboxMap) {\n+\n+    // Add hillshade data source to map\n+    RasterDemSource rasterDemSource = new RasterDemSource(SOURCE_ID, SOURCE_URL);\n+    mapboxMap.addSource(rasterDemSource);\n+\n+    // Create hillshade layer source to map\n+    HillshadeLayer hillshadeLayer = new HillshadeLayer(LAYER_ID, SOURCE_ID).withProperties(\n+      hillshadeHighlightColor(Color.parseColor(HILLSHADE_HIGHLIGHT_COLOR)),\n+      hillshadeShadowColor(Color.BLACK)\n+    );\n+\n+    // Add hillshade layer to map\n+    mapboxMap.addLayerBelow(hillshadeLayer, LAYER_BELOW_ID);\n+  }\n+\n+  @Override\n+  public void onCameraIdle() {","path":"MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/styles/HillShadeActivity.java","position":null,"original_position":65,"commit_id":"25e6b76b85416d9dcbacd1c26449f4b25f4c47a9","original_commit_id":"2306650b3c7b5256cf2f3047b0243a5b52c41a6e","user":{"login":"langsmith","id":4394910,"avatar_url":"https://avatars1.githubusercontent.com/u/4394910?v=4","gravatar_id":"","url":"https://api.github.com/users/langsmith","html_url":"https://github.com/langsmith","followers_url":"https://api.github.com/users/langsmith/followers","following_url":"https://api.github.com/users/langsmith/following{/other_user}","gists_url":"https://api.github.com/users/langsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/langsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/langsmith/subscriptions","organizations_url":"https://api.github.com/users/langsmith/orgs","repos_url":"https://api.github.com/users/langsmith/repos","events_url":"https://api.github.com/users/langsmith/events{/privacy}","received_events_url":"https://api.github.com/users/langsmith/received_events","type":"User","site_admin":false},"body":"Slipped past me. Removed.","created_at":"2018-04-17T17:01:40Z","updated_at":"2018-04-17T17:01:40Z","html_url":"https://github.com/mapbox/mapbox-android-demo/pull/621#discussion_r182155690","pull_request_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/621","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/comments/182155690"},"html":{"href":"https://github.com/mapbox/mapbox-android-demo/pull/621#discussion_r182155690"},"pull_request":{"href":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/621"}},"in_reply_to_id":182140483},"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/621","id":168110156,"html_url":"https://github.com/mapbox/mapbox-android-demo/pull/621","diff_url":"https://github.com/mapbox/mapbox-android-demo/pull/621.diff","patch_url":"https://github.com/mapbox/mapbox-android-demo/pull/621.patch","issue_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues/621","number":621,"state":"open","locked":false,"title":"Hillshading example","user":{"login":"langsmith","id":4394910,"avatar_url":"https://avatars1.githubusercontent.com/u/4394910?v=4","gravatar_id":"","url":"https://api.github.com/users/langsmith","html_url":"https://github.com/langsmith","followers_url":"https://api.github.com/users/langsmith/followers","following_url":"https://api.github.com/users/langsmith/following{/other_user}","gists_url":"https://api.github.com/users/langsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/langsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/langsmith/subscriptions","organizations_url":"https://api.github.com/users/langsmith/orgs","repos_url":"https://api.github.com/users/langsmith/repos","events_url":"https://api.github.com/users/langsmith/events{/privacy}","received_events_url":"https://api.github.com/users/langsmith/received_events","type":"User","site_admin":false},"body":"**Don't merge until demo app uses 6.x of the Maps SDK**\r\n\r\nResolves #609 by adding a very basic example of using a `HillshadeLayer` layer.\r\n\r\nWill make cooler hillshade examples in separate future prs\r\n\r\n\r\n![ezgif com-crop](https://user-images.githubusercontent.com/4394910/36043816-72275c06-0d85-11e8-9f5f-e4108c9227fb.gif)\r\n","created_at":"2018-02-08T22:55:58Z","updated_at":"2018-04-17T17:01:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf0ee7f17bcef52ef98613b0e0b5082920162d51","assignee":null,"assignees":[],"requested_reviewers":[{"login":"osana","id":32496536,"avatar_url":"https://avatars2.githubusercontent.com/u/32496536?v=4","gravatar_id":"","url":"https://api.github.com/users/osana","html_url":"https://github.com/osana","followers_url":"https://api.github.com/users/osana/followers","following_url":"https://api.github.com/users/osana/following{/other_user}","gists_url":"https://api.github.com/users/osana/gists{/gist_id}","starred_url":"https://api.github.com/users/osana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osana/subscriptions","organizations_url":"https://api.github.com/users/osana/orgs","repos_url":"https://api.github.com/users/osana/repos","events_url":"https://api.github.com/users/osana/events{/privacy}","received_events_url":"https://api.github.com/users/osana/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":500785350,"url":"https://api.github.com/repos/mapbox/mapbox-android-demo/labels/new%20example%20:sparkles:","name":"new example :sparkles:","color":"7753eb","default":false},{"id":500784546,"url":"https://api.github.com/repos/mapbox/mapbox-android-demo/labels/%E2%9C%93%20ready%20for%20review%20:+1:","name":"✓ ready for review :+1:","color":"33c377","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/621/commits","review_comments_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/621/comments","review_comment_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues/621/comments","statuses_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/statuses/25e6b76b85416d9dcbacd1c26449f4b25f4c47a9","head":{"label":"mapbox:ls-hillshade-example","ref":"ls-hillshade-example","sha":"25e6b76b85416d9dcbacd1c26449f4b25f4c47a9","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars1.githubusercontent.com/u/600935?v=4","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":16709229,"name":"mapbox-android-demo","full_name":"mapbox/mapbox-android-demo","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars1.githubusercontent.com/u/600935?v=4","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/mapbox-android-demo","description":"Demo app for Mapbox Android SDK on Google Play","fork":false,"url":"https://api.github.com/repos/mapbox/mapbox-android-demo","forks_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/forks","keys_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/teams","hooks_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/hooks","issue_events_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/events","assignees_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/tags","blobs_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/languages","stargazers_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/stargazers","contributors_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/contributors","subscribers_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/subscribers","subscription_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/subscription","commits_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/merges","archive_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/downloads","issues_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/releases{/id}","deployments_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/deployments","created_at":"2014-02-10T21:01:59Z","updated_at":"2018-04-16T05:48:37Z","pushed_at":"2018-04-17T17:00:33Z","git_url":"git://github.com/mapbox/mapbox-android-demo.git","ssh_url":"git@github.com:mapbox/mapbox-android-demo.git","clone_url":"https://github.com/mapbox/mapbox-android-demo.git","svn_url":"https://github.com/mapbox/mapbox-android-demo","homepage":"https://play.google.com/store/apps/details?id=com.mapbox.mapboxandroiddemo","size":113473,"stargazers_count":295,"watchers_count":295,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":190,"mirror_url":null,"archived":false,"open_issues_count":59,"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"},"forks":190,"open_issues":59,"watchers":295,"default_branch":"master"}},"base":{"label":"mapbox:master","ref":"master","sha":"8ab7c1ddd5fd74c1046c79140000a49b9a417a96","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars1.githubusercontent.com/u/600935?v=4","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":16709229,"name":"mapbox-android-demo","full_name":"mapbox/mapbox-android-demo","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars1.githubusercontent.com/u/600935?v=4","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/mapbox-android-demo","description":"Demo app for Mapbox Android SDK on Google Play","fork":false,"url":"https://api.github.com/repos/mapbox/mapbox-android-demo","forks_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/forks","keys_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/teams","hooks_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/hooks","issue_events_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/events","assignees_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/tags","blobs_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/languages","stargazers_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/stargazers","contributors_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/contributors","subscribers_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/subscribers","subscription_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/subscription","commits_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/merges","archive_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/downloads","issues_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/releases{/id}","deployments_url":"https://api.github.com/repos/mapbox/mapbox-android-demo/deployments","created_at":"2014-02-10T21:01:59Z","updated_at":"2018-04-16T05:48:37Z","pushed_at":"2018-04-17T17:00:33Z","git_url":"git://github.com/mapbox/mapbox-android-demo.git","ssh_url":"git@github.com:mapbox/mapbox-android-demo.git","clone_url":"https://github.com/mapbox/mapbox-android-demo.git","svn_url":"https://github.com/mapbox/mapbox-android-demo","homepage":"https://play.google.com/store/apps/details?id=com.mapbox.mapboxandroiddemo","size":113473,"stargazers_count":295,"watchers_count":295,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":190,"mirror_url":null,"archived":false,"open_issues_count":59,"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"},"forks":190,"open_issues":59,"watchers":295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/621"},"html":{"href":"https://github.com/mapbox/mapbox-android-demo/pull/621"},"issue":{"href":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues/621"},"comments":{"href":"https://api.github.com/repos/mapbox/mapbox-android-demo/issues/621/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/621/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapbox/mapbox-android-demo/pulls/621/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/mapbox-android-demo/statuses/25e6b76b85416d9dcbacd1c26449f4b25f4c47a9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"langsmith"}}