-
-
Notifications
You must be signed in to change notification settings - Fork 595
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 zero opacity case #2462
Fix zero opacity case #2462
Conversation
This does not seem to address the issue in #2461 . Rather, the opacity condition should be in tiledimage.js:294 |
@jetic83 Try the latest. It is now working correctly for me in my tests. I moved the logic for checking for the zero opacity case (in conjunction with the |
Hi @pearcetm , yes, this works for me as well, thanks! |
…preload in html and canvas drawers since that is done in tiledimage.
Great, glad you could confirm it works for you. The minor change in the demo page was just due to some tweaks I made to test this (before I realized I didn't need to change it after all). The most recent commit also lets the new Thank you for pointing this out so we can get it fixed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
This fix checks a
TiledImage
for the case thatopacity === 0
and where_preload
is false and aborts the tile updates if so, which stops tiles from being loaded for a fully transparent layer. Will fix the undesirable behavior described in #2461