Support for routes and vanishing routes rendering #3373
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds native support for routes and route vanishing. One or more routes can be added/updated/disposed and several properties like color, thickness, etc can be set problematically . This implementation makes use of gradient color expressions to color the traffic zones and hence we only have one draw call to render the route with different traffic zones. There is one more draw call / layer for the casing behind the route.
The key entry points are in the class RouteManager and these APIs are exposed via native map view for android. This changeset is also implemented on opengl and tested as well.
Here is a list of functionalities with this PR:
Demo
A non comprehensive demo of route as simple circles, static in width, and vanishes route across all (you can vanish route on whatever route you want)
Screencast from 04-09-2025 05:16:24 PM.webm