mapbox / mapbox/mapbox-maps-ios

localizeLabels() doesn't work for Standard & Satellite Map Styles

Open
#2,243 2 comments 7 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
- iOS version: 17.0
- Devices affected: Tested on iPhone 15 & iPhone 13 Pro
- Maps SDK Version: 11.6.0

## Observed behavior and steps to reproduce

Calling `localizeLabels()` does not localize labels for standard and new satellite map style. Does however work for custom map styles + traffic map style

## Expected behavior

Calling `localizeLabels()` should localize labels for all map styles

## Notes / preliminary analysis

internal func `convertExpressionForLocalization` called as part of `localizeLabels()` returns nil

## 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

Start by reproducing the issue on the listed iPhone and iOS versions with standard, satellite, custom, and traffic map styles, then trace localizeLabels() into convertExpressionForLocalization. Check why convertExpressionForLocalization returns nil for standard and satellite styles; done means labels are localized across all four styles without regressing the styles that already work.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.