mapbox / mapbox/mapbox-maps-ios
Location puck accuracy ring cannot be disabled when using temporary full accuracy
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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