-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix fill-color property-function interpolation of alpha value #2846
Comments
Just tested the example and this is not an issue with |
This bug is caused by For this reason, we should consider Like #2065, this use case would benefit from some methods to determine the range of a style function. |
mapbox-gl-js version: v0.20.1
Steps to Trigger Behavior
Check out https://jsfiddle.net/p6tjyehh/. DDS fill-color based on the property
someNumber
.Expected Behavior
I expect the polygon to be nearly transparent here, since the styling rule is
[[0, 'rgba(30,60,90,0)'], [1,'rgba(30,60,90,1)']]
, and the value I provided is near 0.Actual Behavior
The polygon is opaque. There's some quirk with the alpha value
1
, though; when I change it to 0.99 (making the styling rule[[0, 'rgba(30,60,90,0)'], [1,'rgba(30,60,90,0.99)']]
, it works properlyThe text was updated successfully, but these errors were encountered: