mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

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

Open camdeardorff opened this issue 8 months ago • 0 comments

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

camdeardorff avatar Jun 15 '24 00:06 camdeardorff