Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

[ios] Add example for formatting expressions. - #285

Merged
fabian-guerra merged 2 commits into
ios-v4.10.0from
fabian-formatting-example
Apr 9, 2019
Merged

fabian-guerra merged 2 commits into
ios-v4.10.0from
fabian-formatting-example

Conversation

@fabian-guerra

Copy link
Copy Markdown
Contributor

WIP requires beta.2 to work.

Comment thread Examples/Examples.h Outdated
extern NSString *const MBXExampleUserLocationAnnotation;
extern NSString *const MBXExampleUserTrackingModes;
extern NSString *const MBXExampleWebAPIData;
extern NSString *const MBXExampleFormattingExpression;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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"];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I recommend also mentioning that the above layers only exist in styles that use the mapbox-streets-v8 source.

@captainbarbosa

Copy link
Copy Markdown
Contributor

I'll take a look at this again when beta.2 is out.

@chloekraw
chloekraw self-requested a review April 5, 2019 19:55

@chloekraw chloekraw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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
fabian-guerra force-pushed the fabian-formatting-example branch from 8cd43e6 to 44bc1fe Compare April 9, 2019 19:59
@fabian-guerra
fabian-guerra merged commit 9883439 into ios-v4.10.0 Apr 9, 2019
@fabian-guerra
fabian-guerra deleted the fabian-formatting-example branch April 9, 2019 20:11
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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants