mapbox / mapbox/mapbox-maps-ios

Layer color changes not rendered until map interaction in 11.18.x

Open
#2,400 2 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: 26.2 (Build 17C52)
  • iOS version: 18.0+
  • Devices affected: iPhone (Simulator and Device)
  • Maps SDK Version: 11.18.0, 11.18.1

Observed behavior and steps to reproduce

  1. Set a layer's color programmatically (e.g., fill color or line color)
  2. Observe that the layer color does not visually update on the map
  3. Pan or zoom the map
  4. The layer color now updates and displays correctly

The color change only renders after user interaction triggers a map redraw.

Expected behavior

Layer color changes should render immediately when the property is set, without requiring map interaction to trigger a visual update.

Works correctly in version 11.14.2.

Notes / preliminary analysis

Regression introduced between 11.14.2 and 11.18.0.

Additional links and references

  • Last working version: 11.14.2
  • Confirmed broken in: 11.18.0, 11.18.1

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 layer color update on iOS with Maps SDK 11.18.0 or 11.18.1, then compare the behavior with 11.14.2. Investigate the rendering path responsible for programmatic layer color changes; done means fill and line colors appear immediately without panning or zooming.

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
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.