mapbox / mapbox/mapbox-maps-ios

Snapshotter `pointForCoordinate` incorrect when using style with built in terrain.

Open
#2,202 0 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

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

Simulator Screenshot - Main 17 - 2024-06-14 at 17 50 23
Simulator Screenshot - Main 17 - 2024-06-14 at 17 50 01

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.