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

Features rendered with WebGLVectorLayerRenderer disappear when WebGLTile layer is added to the map #15698

Open
lysek opened this issue Apr 2, 2024 · 0 comments
Labels

Comments

@lysek
Copy link

lysek commented Apr 2, 2024

Describe the bug
I discovered a bug with a certain combination of GL and non-GL layers (see example below). OL somehow makes the features rendered with experimental WebGLVectorLayerRenderer disappear if you add/remove another GL tile layer to the map, it is needed to pan/zoom the map a little to make them visible again. The bug disappears if you remove the classic vector layer from the map (named vectors in the example - line 59 - it contains the green line). This happens in FF and also in Chrome.

To Reproduce

  • I made this fiddle: https://jsfiddle.net/ghx0eb2u/
  • Click the "Add or remove GL tile layer" button
  • see that the red line disappears when GL tile layer is added/removed

Expected behavior
The red line should be visible all the times.

Use case
I use normal tile layer for background map, WebGL tile for shading, vectors for some features and I wanted to use WebGLVectorLayerRenderer for some special lines with image pattern. The terrain shading layer can be turned on/off and that makes the GL lines invisible.

@lysek lysek added the bug label Apr 2, 2024
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

1 participant