This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Conversation
4 of 7 tasks
Contributor
Author
|
Problems that will have to be addressed later:
|
Contributor
Author
|
Found a bug where a tilted off-screen user dot doesn't get reset when the pitch changes. Looking into a fix. |
Contributor
Author
Fixed in f502e90. |
Contributor
|
Checking this out. |
This exposes the naïveté of the current pitch transform: accuracy ring sizing stays constant, despite vertical screen movement. Still, it looks better pitched than not.
Fix case where moving the tilted dot off-screen, changing the pitch to 0, and then moving the dot back on screen would not reset the pitch of the dot.
Contributor
Contributor
|
This looks great and I think it's ready. Bummer about the accuracy circle, but that's bigger issues over in #2186 / having a varying meters/pixel at different points on the screen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Squash of #2233.
The puck and dot continue to be drawn as a single
UIView(MGLUserLocationAnnotationView), entirely using several stackedCALayerand vectors — no images allowed here.The pseudo-3D effects for the dot and puck while tilting are accomplished by moving the shadow offset and by vertically shifting the blue dot as pitch changes.
/cc @1ec5 @incanus @mapbox/mobile