Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Expose setStyleJson and getStyleJson #9714

Merged
merged 2 commits into from
Aug 10, 2017
Merged

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Aug 7, 2017

closes #8347, additionally this PR fixes:

  • add example for setStyleJson to local file style example
  • add example for getStyleJson in debug mode activity
  • correct exception forwarding for timber
  • formatting issue with doubles
  • corrected placement of bottomsheet activity category

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Aug 7, 2017
@tobrun tobrun added this to the android-v5.2.0 milestone Aug 7, 2017
@tobrun tobrun self-assigned this Aug 7, 2017
@tobrun tobrun requested a review from Guardiola31337 August 7, 2017 08:17
@tobrun tobrun force-pushed the 8347-expose-set-style-json branch 2 times, most recently from 054d350 to 11c855a Compare August 7, 2017 12:20
Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor thing.

@@ -115,6 +155,28 @@ private void writeToFile(File file, String contents) throws IOException {
}
}

static class RawResourceReaderWriter {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readRawResource is duplicated across different activities (i.e. QueryRenderedFeaturesBoxSymbolCountActivity, DataDrivenStyleActivity, RuntimeStyleActivity and GeoJsonSourceTests). We could extract RawResourceReaderWriter and remove that duplication.

@tobrun tobrun force-pushed the 8347-expose-set-style-json branch from 11c855a to b979e32 Compare August 9, 2017 15:48
@tobrun tobrun force-pushed the 8347-expose-set-style-json branch from b979e32 to 3102e67 Compare August 10, 2017 09:12
@tobrun tobrun force-pushed the 8347-expose-set-style-json branch from 3102e67 to 4627b6e Compare August 10, 2017 09:24
@tobrun tobrun merged commit a5eecd6 into master Aug 10, 2017
@tobrun tobrun deleted the 8347-expose-set-style-json branch August 10, 2017 11:27
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 6, 2017
20 tasks
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 19, 2017
20 tasks
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 26, 2017
20 tasks
@tobrun tobrun mentioned this pull request Nov 3, 2017
21 tasks
This was referenced Nov 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose setStyleJson
2 participants