Skip to content
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 unexpected results for zoom-and-property function #2827

Closed
jfirebaugh opened this issue Jul 6, 2016 · 3 comments · Fixed by #3155
Closed

Fix unexpected results for zoom-and-property function #2827

jfirebaugh opened this issue Jul 6, 2016 · 3 comments · Fixed by #3155

Comments

@jfirebaugh
Copy link
Contributor

        "fill-color": {
          "property": "property",
          "stops": [
            [{"zoom": 0, "value": 0}, "rgba(255,0,0,1)"],
            [{"zoom": 0, "value": 1}, "rgba(0,255,0,1)"],
            [{"zoom": 0, "value": 2}, "rgba(0,0,255,1)"],
            [{"zoom": 1, "value": 0}, "rgba(255,0,0,0)"],
            [{"zoom": 1, "value": 1}, "rgba(0,255,0,0)"],
            [{"zoom": 1, "value": 2}, "rgba(0,0,255,0)"]
          ]
        }

At z=0.1, I'd expect these fills to be rendered with opacity 0.9. Instead they are rendered with 0 opacity (fully transparent).

@lucaswoj lucaswoj changed the title Unexpected results for zoom-and-property function Fix unexpected results for zoom-and-property function Jul 29, 2016
@lucaswoj
Copy link
Contributor

I can imagine improving our handling of zoom-and-property functions by moving more interpolation logic to the shader via #pragmas

@lucaswoj
Copy link
Contributor

Fixed by #2971

@jfirebaugh
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants