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

Implement tooling for RouteOverlay customization on iOS #450

Open
Archdoog opened this issue Feb 4, 2025 · 2 comments
Open

Implement tooling for RouteOverlay customization on iOS #450

Archdoog opened this issue Feb 4, 2025 · 2 comments

Comments

@Archdoog
Copy link
Collaborator

Archdoog commented Feb 4, 2025

#439

@ianthetechie
Copy link
Contributor

Thanks! I'll take a look at this later today and either whip up a quick PR or document what needs to be done if it's not a super quick one.

@ianthetechie
Copy link
Contributor

As @ben-burwood already pointed out, we already have something close to this with the RouteStyleLayer. Currently we render both lines in the NavigationMapView body.

I suspect what we probably want to at some point is:

  1. Make RouteStyleLayer handle drawing both the traveled and remaining route line. It feels like this should contain the full default implementation in a single style layer collection (the SwiftUI DSL is more advanced here).
  2. Accept another MapContentBuilder parameter with a default value that creates the built-in RouteStyleLayer.
  3. Obviously, we should also make NavigationState's remainingRoutePolyline return what it's supposed to ;)

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