WebGL Tiles rendered using alpha-channel in band math do not show up on iOS
See original GitHub issueThe Problem
My project involves requesting png files from a server with rgba-encoded data, which I style client-side. This works beautifully in all browsers on desktop (specifically, MacBook Pro) but fails in iOS.
To Reproduce
I’ve put together a reproduction in this repository, where I have a Mock Service Worker returning an example png, which I pain gray anywhere there is a non-zero value in the blue channel. This is obviously a simplification of the real business logic in my application, but it does reproduce the problem. MSW can be a bit finicky to get working, but a simple npm install && npm start
should be enough to reproduce.
Expected behavior The gray streaks representing data should appear on all devices consistently, but it does not on iOS.
Example of expected behavior:
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Using a third party PNG parser and loading into data tiles renders correctly plus the current
getData()
works as expected https://codesandbox.io/s/simple-forked-nxy41s?file=/main.jsI just ran my CodeSandbox on IOS Safari via BrowserStack. There is a black hole at the top of Everest where the alpha is 0, which does not happen on Windows.