This repository was archived by the owner on Jun 14, 2024. It is now read-only.
Repository navigation
[ios] Add example for formatting expressions. - #285
Merged
Merged
Conversation
captainbarbosa
suggested changes
Apr 3, 2019
| extern NSString *const MBXExampleUserLocationAnnotation; | ||
| extern NSString *const MBXExampleUserTrackingModes; | ||
| extern NSString *const MBXExampleWebAPIData; | ||
| extern NSString *const MBXExampleFormattingExpression; |
Contributor
There was a problem hiding this comment.
Can you please put this under line 37 so that its in alphabetical order?
|
|
||
| // Format label's text based on the selected index of the UISegmentedControl | ||
| - (void)formatText:(UISegmentedControl *)sender { | ||
| MGLSymbolStyleLayer *stateLayer = (MGLSymbolStyleLayer *)[self.mapView.style layerWithIdentifier:@"state-label"]; |
Contributor
There was a problem hiding this comment.
I recommend also mentioning that the above layers only exist in styles that use the mapbox-streets-v8 source.
Contributor
|
I'll take a look at this again when |
chloekraw
self-requested a review
April 5, 2019 19:55
chloekraw
approved these changes
Apr 5, 2019
chloekraw
left a comment
There was a problem hiding this comment.
Thanks for the detailed feedback @captainbarbosa! @fabian-guerra will address these comments next week when they are added as official parts of our example documentation. For now I'll approve so we can test with the beta release.
fabian-guerra
force-pushed
the
fabian-formatting-example
branch
from
April 9, 2019 19:59
8cd43e6 to
44bc1fe
Compare
friedbunny
pushed a commit
that referenced
this pull request
Apr 9, 2019
Added a test case for formatting expressions feature.
friedbunny
pushed a commit
that referenced
this pull request
Apr 24, 2019
Added a test case for formatting expressions feature.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP requires beta.2 to work.