mapbox / mapbox/mapbox-maps-ios
Snapshotter `pointForCoordinate` incorrect when using style with built in terrain.
Open
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: 15.4
- iOS version: 17.4
- Devices affected: (known) iPhone 14 Pro, Simulators
- Maps SDK Version: 11.4.0
Observed behavior and steps to reproduce
Expected behavior
In this case, the produced image should show the intended line at the correct location regardless of map style.
Notes / preliminary analysis
Calling snapshotter.removeTerrain() after the style has loaded and before starting the image generation was sufficient to work around this issue.
Additional links and references
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
Reproduce the Snapshotter pointForCoordinate issue with the listed Xcode, iOS, and Maps SDK versions using a style with built-in terrain. Compare the generated image with the removeTerrain workaround; done means the intended line appears at the correct location regardless of map style.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100