-
Notifications
You must be signed in to change notification settings - Fork 181
Description
Environment
- Maps SDK Version: v10 beta
Observed behavior and steps to reproduce
The Nav SDK started seeing some issues with the route duration annotations being implemented here: mapbox/mapbox-navigation-ios#2996. These issues are also seen in the simpler PR for adding a new example to the Maps SDK sample app: #190.
The issues are around the icon-anchor
and text-anchor
properties seeming to regress somewhere between when I first put up the sample PR and now. @nishant-karajgikar and I spent a lot of time debugging this. Our shared assumption was that the issue lay either in my use of the runtime styling expressions or in the SDK expression logic itself.
After looking at it for a while and even eliminating the use of data-driven styling, the main issues remained. We came to the conclusion that the issues are likely to be in how the SDK handles generating the GL stretchable images from the UIImage interface provided in the iOS Maps SDK.
#190 contains an animated GIF of how this should look, mainly that the annotations are clearly visually anchored properly with the tip of the annotation staying attached to the map at the same spot. If you build and try the same sample in this branch: ac-AnnotationStylingRedux
you will see that the visual behavior is now incorrect and the anchors are not maintained properly.