-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
… to top left (out of SearchUI) #165
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 | ||
) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
… 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) |
Description
Fixes #165
Checklist
[ ] UpdateCHANGELOG