How to insert a gradient layer between the base map and a route layer in the same canvas #2529
Unanswered
binaryAustin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The UI/UX team proposes a design like this. As you can see, there's a gradient layer covering around the map.
I've been experimenting with these 2 methods:
Method 1
Obviously, the route layer is rendered in the same canvas with the base map so it does not work for my design.
I also tried with a background layer but it only supports a solid color, not gradient ones.
Method 2
This kinda works, except one big issue: The route is inaccurate (as the result of being rendered in a separate canvas from the base map).
Any suggestion would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions