mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

Annotate intersecting roads and maneuver points along the current route

Open avi-c opened this issue 3 years ago • 6 comments

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

Simulator Screen Shot - iPhone 11 - 2021-04-13 at 12 06 37 Simulator Screen Shot - iPhone 11 - 2021-04-13 at 12 03 34

avi-c avatar Apr 13 '21 19:04 avi-c

@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.

avi-c avatar Apr 13 '21 19:04 avi-c

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.

avi-c avatar Apr 20 '21 03:04 avi-c

Would love to see tests for the new functionality.

S2Ler avatar Jun 24 '21 09:06 S2Ler

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.

1ec5 avatar May 17 '22 15:05 1ec5

1ef5c186bffc30b7f9976e6a102d347d3942cb19 has been rebased to squash some intermediate commits.

1ec5 avatar May 17 '22 15:05 1ec5

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:

Harwick Bittern

1ec5 avatar May 17 '22 19:05 1ec5