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

Add compass/bearing snapping to iOS map view - #938

Closed
friedbunny wants to merge 1 commit into
mapbox:masterfrom
friedbunny:compass-snapping
Closed

friedbunny wants to merge 1 commit into
mapbox:masterfrom
friedbunny:compass-snapping

Conversation

@friedbunny

Copy link
Copy Markdown
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

incanus commented Mar 3, 2015

Copy link
Copy Markdown
Contributor

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

@incanus

incanus commented Mar 22, 2015

Copy link
Copy Markdown
Contributor

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

@incanus

incanus commented Mar 22, 2015

Copy link
Copy Markdown
Contributor

→ #1059

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

Copy link
Copy Markdown
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