Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SearchExample attribution and logo placement #170

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

aokj4ck
Copy link
Contributor

@aokj4ck aokj4ck commented Feb 7, 2024

Description

Fixes #165

Checklist

  • [ ] Update CHANGELOG
Before After After (iPhone SE)
Simulator Screen Shot - iPhone 14 Pro - 2024-02-07 at 14 14 06 Simulator Screen Shot - iPhone 14 Pro - 2024-02-07 at 14 09 12 Simulator Screen Shot - iPhone SE (2nd generation) - 2024-02-07 at 14 19 18

@aokj4ck aokj4ck requested review from a team as code owners February 7, 2024 19:37
@aokj4ck aokj4ck requested review from globaltrouble, a user and Udumft February 7, 2024 19:37
Comment on lines +33 to +39
let scalarX = mapView.ornaments.logoView.bounds.maxX + 12
mapView.ornaments.options.scaleBar = ScaleBarViewOptions(
position: .topLeading,
margins: CGPoint(x: scalarX, y: 0),
visibility: .visible,
useMetricUnits: false
)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can just hide scale bar, not like it's important to the sample

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it is not essential although I would like to leave it because the margin behavior is not entirely obvious so this helps demonstrate what is possible.

@aokj4ck aokj4ck merged commit a28aee5 into main Feb 9, 2024
3 checks passed
@aokj4ck aokj4ck deleted the example-attribution branch February 9, 2024 15:52
aokj4ck added a commit that referenced this pull request Apr 5, 2024
… to top left (out of SearchUI) #165 (#170)

### Description
Fixes #165

- Update SearchExample > Integrate SearchUI module to demonstrate correct attribution on a Mapbox MapView when using the SearchUI 
- Attribution guide: https://docs.mapbox.com/help/getting-started/attribution/#mapbox-maps-sdk-for-ios

### Checklist
- ~[ ] Update `CHANGELOG`~

| Before | After | After (iPhone SE) |
| -- | -- | -- |
|  ![Simulator Screen Shot - iPhone 14 Pro - 2024-02-07 at 14 14 06](https://github.com/mapbox/mapbox-search-ios/assets/384288/727d2952-488e-41b4-a263-6e098460a428) | ![Simulator Screen Shot - iPhone 14 Pro - 2024-02-07 at 14 09 12](https://github.com/mapbox/mapbox-search-ios/assets/384288/4f553bf3-56ba-4554-8037-5c298b925385) | ![Simulator Screen Shot - iPhone SE (2nd generation) - 2024-02-07 at 14 19 18](https://github.com/mapbox/mapbox-search-ios/assets/384288/0ed6e44b-8dfa-486a-8332-334ac608fb34) |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search box covers Mapbox watermark and info circle button
2 participants