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

Icon images turn black when using WebGLPointsLayer. #15746

Open
kimdonghyun1219 opened this issue Apr 16, 2024 · 1 comment
Open

Icon images turn black when using WebGLPointsLayer. #15746

kimdonghyun1219 opened this issue Apr 16, 2024 · 1 comment
Labels

Comments

@kimdonghyun1219
Copy link

kimdonghyun1219 commented Apr 16, 2024

WebGLPointsLayer
The example is being used as is.
When the network is unstable or slow, the icon becomes black frequently.
Is there a way to prevent this from happening?

"ol": "^7.1.0"

WebGLPointsLayer

@mike-000
Copy link
Contributor

If the image fails to load (e.g. you change "icon-src": "data/icon.png", to "icon-src": "data/icon_.png",) it will appear black in that example. But make the same change in a canvas layer, e.g. https://openlayers.org/en/latest/examples/modify-icon.html it will appear transparent.

OpenLayers cannot prevent network errors, but maybe the result should be consistent in both renderers? (as with icon-color/fill-color in #15295).

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

No branches or pull requests

2 participants