mapbox / mapbox/mapbox-maps-ios

My location puck icon glitch with random style

Open
#2,006 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

Xcode version: 14.3.1
iOS version: 16.6
Devices affected: All
Maps SDK Version: 10.7

**Observed behavior and steps to reproduce**

After downloading map we have tutorial screen and we guide user to navigate to reach our location through opening google / apple map direction. While this process running we load map screen in background and when app come from background to foreground very first time it show pink icon for user puck (My location). This puck icon randomly display pink square but if close map and open again it was work as expected. I'm looking for help to resolved this issue.

I observed that before upgraded iOS 16.6 this was working fine.

Here is reference screenshot when random pink icon display on screen

![puck_issue](https://github.com/mapbox/mapbox-maps-ios/assets/124591837/e3412773-240f-4cdf-bd44-019dd8b34108)

**Expected behaviour**

> Map should load smoothly and location puck icon should be display.

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

Begin by reproducing the issue with Maps SDK 10.7 on iOS 16.6: download the map, leave the map screen in the background while opening directions, then return to the app. Compare the first foreground load with reopening the map; done means the location puck displays correctly without the pink square.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
computer-graphics, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.