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

Add compass/bearing snapping to iOS map view #938

Closed
wants to merge 1 commit into from
Closed

Add compass/bearing snapping to iOS map view #938

wants to merge 1 commit into from

Conversation

friedbunny
Copy link
Contributor

À la Apple Maps' compass snapping action. If map rotation ends oriented within ±7º of north, assume it was accidental or the user was trying to get back to true and reset the map view to 0º for them.

Video of this in action.

I don't know what Apple's snap-back threshold is, but 7º seemed like a decent balance between actual rotation and friendly UX.

@incanus
Copy link
Contributor

incanus commented Mar 3, 2015

Cool, good call — I did notice this. Will take a look at this.

@incanus
Copy link
Contributor

incanus commented Mar 22, 2015

Love the 7 degrees here — feels perfect. Making minor tweaks now, then will merge.

@incanus
Copy link
Contributor

incanus commented Mar 22, 2015

#1059

@incanus incanus closed this Mar 22, 2015
@friedbunny friedbunny deleted the compass-snapping branch March 22, 2015 19:19
@friedbunny
Copy link
Contributor Author

Awesome, thanks for coming back to this.

friedbunny added a commit that referenced this pull request Dec 24, 2015
First proposed in #938, implemented in #1059, reverted in #1064.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants