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

Add NavigationMapRoute above road layers #520

Closed
ericrwolfe opened this issue Nov 21, 2017 · 5 comments
Closed

Add NavigationMapRoute above road layers #520

ericrwolfe opened this issue Nov 21, 2017 · 5 comments
Milestone

Comments

@ericrwolfe
Copy link
Contributor

The Android Maps SDK didn't used to expose the sourceLayerIdentifier, which meant that layer IDs were hardcoded in the traffic plugin (fixed) and for the route line.

This can cause the route line to appear in the wrong place if the current style doesn't have a ROUTE_BELOW_LAYER where we expect it.

We should update the NavigationMapRoute and place the route line either above the topmost map layer that isn't a symbol layer as is done on iOS, or above the topmost layer with source = roads.

cc @danesfeder @bsudekum

@ericrwolfe ericrwolfe added this to the v0.7.1 milestone Nov 21, 2017
@danesfeder
Copy link
Contributor

update the NavigationMapRoute and place the route line either above the topmost map layer that isn't a symbol layer as is done on iOS, or above the topmost layer with source = roads

@tobrun is there a reliable way to do this?

I'm looking at https://github.com/mapbox/mapbox-plugins-android/blob/master/plugin-traffic/src/main/java/com/mapbox/mapboxsdk/plugins/traffic/TrafficPlugin.java#L198 wondering if that's a viable solution (you mention it might not always be accurate).

@tobrun
Copy link
Member

tobrun commented Nov 22, 2017

@tobrun is there a reliable way to do this?
I'm looking at https://github.com/mapbox/mapbox-plugins-android/blob/master/plugin-traffic/src/main/java/com/mapbox/mapboxsdk/plugins/traffic/TrafficPlugin.java#L198 wondering if that's a viable solution (you mention it might not always be accurate).

Afaik this is the only way for now, I would be nice if we could add this kind of functionality to core instead of writing it on the binding side.

@ericrwolfe ericrwolfe modified the milestones: v0.7.1, v0.8.0 Dec 7, 2017
@ericrwolfe
Copy link
Contributor Author

Yeah, I think this might be due to the ROUTE_BELOW_LAYER code. We should remove that and instead make sure that the NaivgationMapRoute code is hit.

@danesfeder
Copy link
Contributor

Closed with #590

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

3 participants