mapbox / mapbox/mapbox-navigation-ios

mapViewUserAnchorPoint on NavigationViewControllerDelegate has no effect.

Open
#2,923 7 comments 0 reactions 1 assignee View on GitHub

@MaximAlien is already working on this.

Since Nov 15, 2021.

jira-sync-complete UI
Dominant language
Swift
Stars
918
Forks
326
Avg merge
1h 16m
Merged PRs (30d)
3

Description

Test App Repo:
(This is essentially just Mapboxes tutorial app)
https://github.com/JustinmClapperton/mapboxIosTest

Example Video:
https://drive.google.com/file/d/1jy2JCdjmXaUqwlBGw9pW-RWSU9BrwtoB/view?usp=sharing

**Mapbox Navigation SDK version:**

1.4.0

### Steps to reproduce

1. Open application
2. Long press on destination
3. Press Start Navigation
4. Notice the use puck anchor hasnt changed

### Expected behavior

User puck should be at the location define in
```
func navigationViewController(_ navigationViewController: NavigationViewController, mapViewUserAnchorPoint mapView: NavigationMapView) -> CGPoint {
return CGPoint(x: 100, y: 100)
}
```

### Actual behavior

The user puck does not move at all as if the above method is completely ignored. It seems that it isnt passed through to the underlying MapView.

Any advice on a work around for this if possible would be much appreciated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.