mapbox / mapbox-maps-ios

Interactive, thoroughly customizable maps for iOS powered by vector tiles and Metal
https://www.mapbox.com/mapbox-mobile-sdk
Other
482 stars 157 forks source link

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

Open amzada opened 1 month ago

amzada commented 1 month ago

Environment

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

jvanderwee commented 1 month ago

Hey @pjleonard37 👋 could you please take a look at this one?

pjleonard37 commented 1 month ago

Hi all --

Mapbox Standard introduced a new basemap approach that changed how layers are handled at runtime. As you've identified, this means that the localizeLabels() approach to translating map labels does not work for these styles.

We're working on a different approach to translating map labels for Standard and Standard Satellite and hope to share additional information soon.