mapbox / mapbox/mapbox-maps-ios

Image uploaded in Mapbox Studio returns nil above Mapbox SDK version 11.8.0

Open
#2,301 8 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: 16.0.0
  • iOS version: All versions
  • Devices affected: All devices
  • Maps SDK Version: 11.9.0, 11.10.0

Observed behavior and steps to reproduce

  1. Upload an image in Mapbox Studio
  2. Now try to access image using ID
    mapView?.mapboxMap.image(withId: "<image ID here>") // returns nil.

Expected behavior

UIImage object should return from styleManager.

Notes / preliminary analysis

  • Observed this issue after Mapbox SDK version upgraded to 11.9.0 or 11.10.0 from 11.8.0 version.

Additional links and references

Image uploaded in Studio.
Image

Same behaviour in SwiftUI :
proxy.map?.image(withId: pinFeature.imageIcon) returns nil.

Also false returns for
public func imageExists(withId id: String) -> Bool { return styleManager.hasStyleImage(forImageId: id) }

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 issue with Mapbox Maps SDK 11.8.0, 11.9.0, and 11.10.0 using an image uploaded in Mapbox Studio. Trace mapboxMap.image(withId:) and imageExists(withId:), including styleManager.hasStyleImage(forImageId:), to identify the version regression. Done means Studio-uploaded images return a UIImage and imageExists(withId:) returns true in the affected versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.