You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the line-gradient paint property on a line with linear interpolation for line-progress
Make the step between two points for interpolation very close together, within 0.001 of each other
Now make the difference even smaller, like 0.0001 within each other. There will be no difference in the output line created. However the gradient should start much closer to the first point.
For example, if you have the following layer definition:
Then changing the 0.001 to a smaller number will not have an effect on the output. It seems that this is the maximum precision of the line gradient which is unfortunate because if you have a line that goes across the entire US and want a gradient with steps around the size of a house lot then its impossible.
@aspindlerT You'll have to build it yourself. We don't have builds from branches/PRs. The contributing docs will help you get started if you haven't built GL-JS from source before.
mapbox-gl-js version: v1.10.1
browser: Chrome 81
Steps to Trigger Behavior
line-gradient
paint property on a line with linear interpolation forline-progress
For example, if you have the following layer definition:
Then changing the
0.001
to a smaller number will not have an effect on the output. It seems that this is the maximum precision of the line gradient which is unfortunate because if you have a line that goes across the entire US and want a gradient with steps around the size of a house lot then its impossible.Link to Demonstration
https://jsbin.com/dasusuqopu/1/edit?html,css,js,output
In the above demo change the 0.001 in the layer definition to something like 0.0001 to see that it has no effect.
Expected Behavior
Any precision should work for the steps between line gradients.
Actual Behavior
The precision only goes to around
0.001
.The text was updated successfully, but these errors were encountered: