mapbox / mapbox/mapbox-maps-ios

Location puck accuracy ring cannot be disabled when using temporary full accuracy

Open
#1,085 1 comment 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

## Environment

- Xcode version: 13.2.1
- iOS version: 15.3
- Maps SDK Version: 10.2.0

## Observed behavior and steps to reproduce

When location puck is set to not show accuracy ring. It won't show it when user has allowed full accuracy location. But if user allowed only reduced location and app asks temporary access to full accuracy location it shows accuracy ring.

```
mapView.location.options.puckType = .puck2D(Puck2DConfiguration(topImage: UIImage(named: "location-dot"), bearingImage: UIImage(named: "location-bearing"), shadowImage: nil, scale: nil, showsAccuracyRing: false))
mapView.location.requestTemporaryFullAccuracyPermissions(withPurposeKey: "PreciseLocation")
```

## Expected behavior

Respect location puck configuration in all scenarios.

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 behavior with mapView.location.options.puckType and requestTemporaryFullAccuracyPermissions(withPurposeKey: "PreciseLocation") on the listed iOS and Maps SDK versions. Trace how the location puck handles temporary full accuracy, then verify that showsAccuracyRing: false is respected in both reduced-accuracy and temporary-full-accuracy scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.