mapbox / mapbox/mapbox-navigation-ios

Current Location Marker Moves Out of View When Hiding App Bar

Open
#4,723 12 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
918
Forks
326
Avg merge
1h 16m
Merged PRs (30d)
3

Description

### Mapbox Navigation SDK version

3.3.1

### Steps to reproduce

- Create an embedded view with app bar
- Display the app bar at the top of the screen.
- Tap to hide the app bar while the navigation is active.
- Observe the current position marker's behavior.

### Expected behavior

The current location marker should remain visible and centered on the map when the app bar is hidden, maintaining a consistent user experience.

### Actual behavior

The current location marker moves downwards and is no longer visible on the screen when the app bar is hidden.

How can I solve this issue if it's ain't a bug.

https://github.com/user-attachments/assets/802274e7-8aad-4f16-b603-9ab0f3b4703b

### Is this a one-time issue or a repeatable issue?

repeatable

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.

Research direction

Start by reproducing the issue with Mapbox Navigation SDK 3.3.1 using an embedded view and the app-bar hide steps. Trace how hiding the app bar affects the navigation map's current-position marker and camera state; done means the marker remains visible and centered after the app bar is hidden.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.