Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Mapbox Streets source v8 #1624

Closed
4 tasks done
1ec5 opened this issue Dec 12, 2018 · 4 comments
Closed
4 tasks done

Upgrade to Mapbox Streets source v8 #1624

1ec5 opened this issue Dec 12, 2018 · 4 comments
Assignees

Comments

@1ec5
Copy link
Contributor

1ec5 commented Dec 12, 2018

mapbox/mapbox-gl-native#13481 adds support for Mapbox Streets source v8, which is currently in beta. By the time map SDK v7.0.0 comes out, we’ll need to add corresponding support for Streets source v8; otherwise, anyone using a v8-dependent style will incur twice as much overhead from vector tile downloading and processing, while map labels and the current road name label will go blank. We’ll want to retain support for v7 for the time being, since some popular navigation styles still use v7.

As far as I can tell, here are the changes we’ll need to make to accommodate both v7 and v8:

Unlike in mapbox/mapbox-navigation-ios#1896, it looks like the Android navigation SDK always adds a vector tile source for Streets source v8, without checking whether Streets source is already part of the style. That’s a problem because the SDK would end up downloading tiles for two different versions of the Streets source simultaneously, significantly increasing bandwidth consuption.

Does the Android navigation SDK automatically localize labels like on iOS? If so, there may need to be some changes to account for different language fallback mechanisms between v7 and v8.

/cc @mapbox/navigation-android @mapbox/maps-android @brsbl @taraniduncan

@danesfeder
Copy link
Contributor

@1ec5 thanks for cutting this / setting up the checklist - I edited the second task to include:

it looks like the Android navigation SDK always adds a vector tile source for Streets source v8, without checking whether Streets source is already part of the style

I don't think we do any automatic localization. If we need to add this, I think we should cut a new ticket for that effort.

@1ec5
Copy link
Contributor Author

1ec5 commented Dec 14, 2018

Yeah, localization is a separate feature (and a separate plugin on Android). The tasks above are relevant because of how we’re adding the source unconditionally for the road name label.

@1ec5
Copy link
Contributor Author

1ec5 commented Dec 18, 2018

anyone using a v8-dependent style will incur twice as much overhead from vector tile downloading and processing, while map labels and the current road name label will go blank

This would become more likely in v4.7.0, once mapbox/mapbox-gl-native#13585 adds easily discoverable accessors for v8-powered styles.

@danesfeder
Copy link
Contributor

Thanks for the help figuring this out @1ec5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants