Skip to content

Commit

Permalink
Fix callouts displacement (#4427)
Browse files Browse the repository at this point in the history
* Fix callouts position

* Add changelog
  • Loading branch information
azarovalex committed Apr 14, 2023
1 parent 010b65e commit f948b6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Changes to the Mapbox Navigation SDK for iOS

## v2.13.0

### Map

* Fixed an issue with route callouts being slightly displaced. ([#4427](https://github.com/mapbox/mapbox-navigation-ios/pull/4427))

## v2.12.0

### Packaging
Expand All @@ -9,9 +15,11 @@
* MapboxNavigation now requires [MapboxMaps v10.12.0](https://github.com/mapbox/mapbox-maps-ios/releases/tag/v10.12.0). ([#4417](https://github.com/mapbox/mapbox-navigation-ios/pull/4417))

### Routing

* Added an optional `userInfo` argument to the `NavigationService(indexedRouteResponse:customRoutingProvider:credentials:locationSource:eventsManagerType:simulating:routerType:customActivityType:userInfo:)` and `NavigationService(history:customHistoryEventsListener:customRoutingProvider:credentials:eventsManagerType:routerType:customActivityType:userInfo:)`. ([#4395](https://github.com/mapbox/mapbox-navigation-ios/pull/4395))

### Visual instructions

* Fixed duplication of the road name components in the road shield and the label. ([#4401](https://github.com/mapbox/mapbox-navigation-ios/pull/4401))
* Added support for localized road shields. ([#4401](https://github.com/mapbox/mapbox-navigation-ios/pull/4401))
* Added `localizedRouteShieldRepresentationKey` to the user info dictionary of `Notification.Name.passiveLocationManagerDidUpdate` posted by `PassiveLocationManager`, and the `Notification.Name.currentRoadNameDidChange` posted by `RouteController`. The corresponding value contains localized route shield data. ([#4401](https://github.com/mapbox/mapbox-navigation-ios/pull/4401))
Expand Down
4 changes: 2 additions & 2 deletions Sources/MapboxNavigation/NavigationMapView+Annotations.swift
Expand Up @@ -312,8 +312,8 @@ extension NavigationMapView {
let offsetExpression = Exp(.match) {
Exp(.get) { "tailPosition" }
0
Exp(.literal) { [0.5, -1.0] }
Exp(.literal) { [-0.5, -1.0] }
Exp(.literal) { [0.7, -1.7] }
Exp(.literal) { [-0.7, -1.7] }
}
shapeLayer.iconOffset = .expression(offsetExpression)
shapeLayer.textOffset = .expression(offsetExpression)
Expand Down

0 comments on commit f948b6a

Please sign in to comment.