You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
When map is tilted, flat annotation views should be skewed #5090
Google Maps parityFor feature parity with the Google Maps SDK for Android or iOSannotationsAnnotations on iOS and macOS or markers on AndroidbugiOSMapbox Maps SDK for iOS
Both the user dot/puck and the flat annotation views introduced in #5067 rely on CATransform3DRotate() to rotate the annotation view in 3D space. But the transform is based on CATransform3DIdentity, so the annotations appear to be squashed, whereas the map is skewed with a perspective transform:
Untilted
Tilted
Notice how the left and right edges of each annotation remain perpendicular to the top and bottom edges, even as the north-south roads come closer together towards the top of the view. (This is the same area depicted in #1266, by the way.)
changed the title [-]When map is tilted, flat annotation views should be skewed, not vertically scaled[/-][+]When map is tilted, flat annotation views should be skewed[/+]on May 21, 2016
#5245 isn’t going to make iOS SDK v3.3.0, so we need to remove the flat property from MGLAnnotationView, because that property doesn’t produce the intended, documented effect. It isn’t such a big deal with the user dot/puck, which is round and relatively small, so we won’t touch that for v3.3.0. We’ll leave this bug open to track the real fix in v3.4.0.
Google Maps parityFor feature parity with the Google Maps SDK for Android or iOSannotationsAnnotations on iOS and macOS or markers on AndroidbugiOSMapbox Maps SDK for iOS
Activity
[-]When map is tilted, flat annotation views should be skewed, not vertically scaled[/-][+]When map is tilted, flat annotation views should be skewed[/+]1ec5 commentedon Jun 6, 2016
http://stackoverflow.com/questions/6887786/understanding-catransform3d
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CoreAnimation_guide/AdvancedAnimationTricks/AdvancedAnimationTricks.html#//apple_ref/doc/uid/TP40004514-CH8-SW13
[ios] Apply perspective to x-free annotation views
[ios] Apply perspective to x-free annotation views
[ios] Apply perspective to x-free annotation views
1ec5 commentedon Jun 30, 2016
#5245 isn’t going to make iOS SDK v3.3.0, so we need to remove the
flatproperty from MGLAnnotationView, because that property doesn’t produce the intended, documented effect. It isn’t such a big deal with the user dot/puck, which is round and relatively small, so we won’t touch that for v3.3.0. We’ll leave this bug open to track the real fix in v3.4.0.[ios] Removed MGLAnnotationView.flat
1ec5 commentedon Jul 3, 2016
#5546 backs out the
flatproperty, pending #5245.5 remaining items
issue #5090: exposing transform state from mbgl::map
issue #5090: updating anno view transform using map's current transfo…
1ec5 commentedon Nov 29, 2016
The commits above are from #6686.
1ec5 commentedon Nov 18, 2017
#5546 removed the flat annotation view feature, but we’re continuing to track a correct implementation of this feature in #10498.