question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Black tiles with DataTileSource and WebGLTileLayer

See original GitHub issue

Describe the bug

Theol.layer.WebGLTile doesn’t render data that were loaded with ol.source.DataTile using a custom tile grid:

Extent: [0, -23828, 23903, 0] Sizes: [[1, 1], [7, 7], [ 25, 25 ], [100, 100]] Tile sizes: [[770, 768], [240, 240], [240, 240], [240, 240]]

Screen Shot 2021-11-12 at 10 00 32 PM

The following warning message gets logged:

WebGL warning: texImage: Desired upload requires more data than is available: (767 rows plus 770 pixels needed, 767 rows plus 258 pixels available)

I didn’t previously experience this issue and wonder whether it may be due to either https://github.com/openlayers/openlayers/pull/11532 or https://github.com/openlayers/openlayers/pull/12024.

Expected behavior

Not sure whether this is a bug or whether my understanding of the tile grid is wrong.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mike-000commented, Nov 15, 2021

That option appears to be used only for defining styles. An unpackAlignment option (with default of 1?) would be useful to ensure the calculation of bandCount for TileTexture corresponds to the gl.pixelStorei setting.

0reactions
hackermdcommented, Nov 15, 2021

@mike-000 It works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebGL Tile Layer Styles - OpenLayers
Styling raster tiles with WebGL. The style property of a WebGL tile layer can be used to adjust properties like exposure , contrast...
Read more >
Layer Swipe implementation for TileLayer and WebGLTIleLayer
I need to make it work for a mix of N Tile and WebGLTile layers. When combining them, it seems like the WebGLTile...
Read more >
Geowebcache pre-seed creates white and black tiles
I have created cached tiles using geoWebcache pre-seeding. ... Can anybody suggest why GWC creates white and black tiles and how to fix...
Read more >
ol-webgl-tile-layer - Vue3 OpenLayers
ol-webgl-tile-layer. This example uses WebGL to raster tiles on a map. # Usage.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found