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

Stop exaggerating heading accuracy indicator size #6120

Merged
merged 2 commits into from
Aug 25, 2016

Conversation

friedbunny
Copy link
Contributor

@friedbunny friedbunny commented Aug 23, 2016

This change removes the 1.5× exaggeration of the user location annotation’s heading indicator.

Also cleaned up some of the heading mask calculations while I was at it.

Fixes #3718.

/cc @1ec5

@friedbunny friedbunny added iOS Mapbox Maps SDK for iOS refactor annotations Annotations on iOS and macOS or markers on Android labels Aug 23, 2016
@friedbunny friedbunny added this to the ios-v3.4.0 milestone Aug 23, 2016
@friedbunny friedbunny self-assigned this Aug 23, 2016
@friedbunny
Copy link
Contributor Author

Unsure if this rises to changelog status. Probably? Haven’t added anything yet.

@1ec5
Copy link
Contributor

1ec5 commented Aug 23, 2016

Unsure if this rises to changelog status.

Sure, why not. There’s visual impact to the user.

@1ec5
Copy link
Contributor

1ec5 commented Aug 23, 2016

👍

@friedbunny friedbunny force-pushed the fb-heading-indicator-accuracy branch from 62d8c67 to a3ea503 Compare August 23, 2016 18:48
@friedbunny
Copy link
Contributor Author

Added a changelog entry.

I also realized that I hadn’t changed the maximum accuracy clipping size, so I went back and updated that to 20° (90 - 70). We now appear as accurate as Apple:

img_4474

(Google doesn’t represent heading accuracy and uses a static heading arrow.)

@friedbunny
Copy link
Contributor Author

friedbunny commented Aug 23, 2016

Note: I’m seeing reported accuracy as high as 10°, but we should still clip to 20° for display purposes.

@friedbunny friedbunny force-pushed the fb-heading-indicator-accuracy branch from a3ea503 to c1a3a77 Compare August 24, 2016 03:21
- 1.5× exaggeration has been removed.
- Maximum accuracy (smallest size) has been increased to 20°.
- Use MGLRadiansFromDegrees().
- Make indentation more readable.
@friedbunny friedbunny force-pushed the fb-heading-indicator-accuracy branch from c1a3a77 to 9cdbac0 Compare August 25, 2016 01:59
@friedbunny friedbunny merged commit 9cdbac0 into master Aug 25, 2016
@friedbunny friedbunny deleted the fb-heading-indicator-accuracy branch August 25, 2016 03:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
annotations Annotations on iOS and macOS or markers on Android iOS Mapbox Maps SDK for iOS refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants