Skip to content

Conversation

cjsmith
Copy link

@cjsmith cjsmith commented May 22, 2025

Fixes #198. I added a showAlternatives prop which when enabled sets the alternatives parameter to true and then renders the alternative routes returned in the result using the alternativeStroke* properties. The onReady prop gets invoked with the main route and then it will get invoked again when an alternative route is selected. Also added selectedRouteIndex and onRouteSelected props to allow parent components to persist the last selected route.

@cjsmith cjsmith changed the title Add showAlternatives prop to display alternative routes on the map #198 Add showAlternatives prop to display alternative routes on the map May 22, 2025
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

Successfully merging this pull request may close these issues.

Alternative routes with on press event

1 participant