-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update MGLVectorTileSource for Mapbox Streets v8 compatibility #11867
Comments
#12387 uses a coalescing expression to fall back from /cc @lloydsheng |
#12387 landed. #12387 (comment) describes how to more gracefully handle the case where a layer gets relocalized, which could be important for performance. The remaining work for this issue is tracked in the to-do list above. |
Looking at the Streets-v8 changelog, attributes have been moved around and added,
Update: whoops, spoke before I saw these: mapbox-gl-native/platform/darwin/src/MGLStyle.mm Lines 600 to 617 in 1b03654
|
#13481 and #13525 have implemented the bulk of the work for this issue. The following task is unfinished, but it seems lower in priority:
|
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
MGLVectorTileSource currently hard-codes compatibility with Mapbox Streets source v6 and v7, particularly for the built-in label localization functionality. When v8 comes out, we’ll need to update MGLVectorTileSource to handle this version as well. In addition to rote version bumping, we’ll also have to account for the fact that
name_*
fields in v8 may be unset if the value would be identical toname
orname_en
(need to confirm the details). Finally, the VoiceOver accessibility code may need updates to recognize any new or renamed fields in v8.mapbox-gl-native/platform/darwin/src/MGLVectorTileSource.mm
Lines 129 to 136 in d1dff1d
mapbox-gl-native/platform/darwin/src/MGLVectorTileSource.mm
Lines 78 to 94 in d1dff1d
mapbox-gl-native/platform/ios/src/MGLMapAccessibilityElement.mm
Lines 80 to 93 in d1dff1d
name_*
languages: Update automatic Streets localization for v8/v11 data/styles #13481name_*
key paths withname
orname_en
in expressions when localizing labels: [iOS] Add fallbacks for name fields #12387-localizedKeysByKeyForPreferredLanguage:
, which is unused: Fix English priority during label localization #11907MGLVectorTileSource.mapboxStreetsURL
class propertyThis work is not blocked by v8 launching; in fact, we should have it in place and released ahead of the launch, so that styles using v8 can take advantage of label localization.
/cc @fabian-guerra @friedbunny @nickidlugash
The text was updated successfully, but these errors were encountered: