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

weird colors with "light" background tiles #16

Closed
tim-salabim opened this issue Nov 4, 2018 · 1 comment · Fixed by #106
Closed

weird colors with "light" background tiles #16

tim-salabim opened this issue Nov 4, 2018 · 1 comment · Fixed by #106

Comments

@tim-salabim
Copy link

When using tile providers with "light" colors (e.g. standard OpenStreetmap) the polygon fill colors get all messed up unless opacity is set to 1.

You can (maybe) reproduce this issue when replacing this line with L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);

In Firefox on linux (Ubuntu 18.04) with default opacity I see:

glify_light

whereas with opacity set to 1 I see:

glify_light_o1

Any ideas what might cause this strange behaviour? I am assuming this has something to do with shaders, but I have no experience with glsl.

For completeness, this was reported at r-spatial/leafgl#4 where some more information can be found and which points to a browser issue as for some combinations of OS and browser this seems to be not a problem.

@nheir
Copy link
Contributor

nheir commented Jun 3, 2021

It look like its related to the premultipliedAlpha parameters of WebGL context canvas

https://bugzilla.mozilla.org/show_bug.cgi?id=1391190

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

Successfully merging a pull request may close this issue.

2 participants