mapbox-navigation-ios
mapbox-navigation-ios copied to clipboard
Annotate intersecting roads and maneuver points along the current route
Description
Adds a UI feature to add visible callout annotations for upcoming intersecting roads, and for annotating the next maneuver point.
Implemented using the Nav SDK v2.0 Electronic Horizon feature.
Screenshots or Gifs
@chezzdev - Please review my use of the new electronic horizon API. Also, please note that I added the RoadGraph to the set of data sent by the EHorizon notifications since that information is needed in order to lookup road network information for the edges so we can display relevant info.
Exposed the font list for the intersection annotations style layer as a UIAppearance proxy of a list of font name strings. Allows for developer to pick fonts in order to support the geographies and languages that they need. Expanded the default set to include DIN Pro Medium
as the primary font with Noto Sans CJK JP Medium
and Arial Unicode MS Regular
set as fallbacks.
Would love to see tests for the new functionality.
This may be blocked by a regression in the map SDK: mapbox/mapbox-maps-ios#381. Need to visually confirm that the tails still point to the route line and that the bubble can stretch horizontally without part of the tail stretching.
1ef5c186bffc30b7f9976e6a102d347d3942cb19 has been rebased to squash some intermediate commits.
This may be blocked by a regression in the map SDK: mapbox/mapbox-maps-ios#381. Need to visually confirm that the tails still point to the route line and that the bubble can stretch horizontally without part of the tail stretching.
The image stretches correctly, but the anchors are way off: