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

Fix hardcoded Styles in iOS sample-app #1709

Closed
wants to merge 3 commits into from
Closed

Fix hardcoded Styles in iOS sample-app #1709

wants to merge 3 commits into from

Conversation

frenos
Copy link

@frenos frenos commented Jun 11, 2015

The current sample for iOS uses a hardcoded array for styles and because of that offers styles not supported anymore.
I fixed that by using bundledStyleURLs which always returns a current list of available styles.
To keep the UI intact and reasonable pretty I extract a name from the filename.

Use api-call „-bundledStyleURLs“ to get style instead of hardcoded
array. Now shows Style-Index instead of name.
Create name from filename and display that instead of index.
@jfirebaugh
Copy link
Contributor

Thanks for the PR. However, the direction we want to go here is to use defaultStyles (#1462) rather than bundledStyleURLs. defaultStyles provides both the style URL and human-readable name.

@jfirebaugh jfirebaugh closed this Jun 25, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants